diff --git a/.babelrc b/.babelrc.js similarity index 82% rename from .babelrc rename to .babelrc.js index 57e7a231..78a02e66 100644 --- a/.babelrc +++ b/.babelrc.js @@ -1,8 +1,9 @@ -{ +module.exports = { "presets": ["next/babel"], "plugins": [ [ "module-resolver", + // https://github.com/zeit/next.js/blob/master/examples/with-absolute-imports/.babelrc { "root": ["./"], "alias": { diff --git a/README.md b/README.md index bc2c5818..52cece66 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ $ BUILD_TARGET=local npm run dev $ npm run lint # fix eslint $ npm run lint:fix +# run test +$ npm t ``` ### ENV vars and Cache issue diff --git a/components/App/AppFooter.js b/components/App/AppFooter.js index 3804ae07..02224437 100644 --- a/components/App/AppFooter.js +++ b/components/App/AppFooter.js @@ -16,7 +16,7 @@ export default function AppFooter() { />

- + 專案介紹 ・ diff --git a/components/App/AppHeader.js b/components/App/AppHeader.js index 3c32da00..d0a78dca 100644 --- a/components/App/AppHeader.js +++ b/components/App/AppHeader.js @@ -97,4 +97,7 @@ function mapDispatchToProps(dispatch) { }; } -export default connect(mapStateToProps, mapDispatchToProps)(AppHeader); +export default connect( + mapStateToProps, + mapDispatchToProps +)(AppHeader); diff --git a/components/CurrentReplies.js b/components/CurrentReplies.js index f6667709..41b11fd5 100644 --- a/components/CurrentReplies.js +++ b/components/CurrentReplies.js @@ -94,7 +94,6 @@ class DeletedItems extends React.Component { } export default function CurrentReplies({ - authId, replyConnections, disabled = false, onDelete = () => {}, @@ -122,7 +121,6 @@ export default function CurrentReplies({