diff --git a/packages/create-freesewing-pattern/template/freesewing/example/src/App.js b/packages/create-freesewing-pattern/template/freesewing/example/src/App.js index deeaab3eb18..7bb0f0e7112 100644 --- a/packages/create-freesewing-pattern/template/freesewing/example/src/App.js +++ b/packages/create-freesewing-pattern/template/freesewing/example/src/App.js @@ -10,12 +10,11 @@ import Pattern from './pattern/src/index.js' * Without it, we can't import the pattern as a local file * since create-react-app does not allow imports outside ./src * If it's imported as a dependency, webpack will cache the - * build and there will be no hot-relaoding of changes + * build and there will be no hot-reloading of changes */ - const App = (props) => { - // You can use this to add transations + // You can use this to add translations /* let translations = { JSON: 'JSON', @@ -26,17 +25,19 @@ const App = (props) => { // Adds support for loading an external pattern configuration let recreate = false if (window) recreate = window.location.pathname.substr(1).split('/') - if (recreate.length === 3 && recreate[0] === 'recreate') + if (recreate.length === 3 && recreate[0] === 'recreate') { recreate = { from: recreate[1], id: recreate[2] } - else recreate = false + } else { + recreate = false + } return ( ) }