Skip to content

Commit

Permalink
chore: tweaks the typo and script-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
59naga committed Mar 11, 2016
1 parent e1f9087 commit 6dc7e8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/client/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Header extends React.Component {
render() {
const date = this.props.date;
const yesterday = moment(date).subtract(1, 'days').format('YYYY-MM-DD');
const tomorow = moment(date).add(1, 'days').format('YYYY-MM-DD');
const tomorrow = moment(date).add(1, 'days').format('YYYY-MM-DD');
const npmLastDay = moment.utc().subtract(1, 'days').startOf('day').format('YYYY-MM-DD');

return (
Expand Down Expand Up @@ -56,10 +56,10 @@ class Header extends React.Component {
iconElementRight={
<RaisedButton
secondary
label={tomorow}
label={tomorrow}
disabled={this.props.packages.length === 0 || date >= npmLastDay}
onClick={() => {
this.context.router.push(`/${tomorow}`);
this.context.router.push(`/${tomorrow}`);
}}
/>
}
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const config = {
};

switch (process.env.npm_lifecycle_event) {
case 'build':
case 'build:client':
process.env.NODE_ENV = 'production';
config.plugins = [
new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }),
Expand Down

0 comments on commit 6dc7e8e

Please sign in to comment.