Skip to content

Commit

Permalink
feat(DEV-13): format styles
Browse files Browse the repository at this point in the history
  • Loading branch information
hhimanshu committed Jun 22, 2021
1 parent e19dc7c commit d8a814c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
10 changes: 6 additions & 4 deletions src/containers/ContentContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Content } from '../components/Content';
import AppShell from '../components/AppShell';

export const ContentContainer = () => {
return <AppShell>
<Content />
</AppShell>;
};
return (
<AppShell>
<Content />
</AppShell>
);
};
19 changes: 12 additions & 7 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ if (process.env.NODE_ENV === 'production') {
}

// This is where your application content can be mounted
const Root = () => <Router>
<Switch>
<Route path='/' exact><ContentContainer /></Route>
<Route path="/offline"><EmptyCard /></Route>
</Switch>
</Router>;

const Root = () => (
<Router>
<Switch>
<Route path='/' exact>
<ContentContainer />
</Route>
<Route path='/offline'>
<EmptyCard />
</Route>
</Switch>
</Router>
);

ReactDOM.render(<Root />, document.getElementById('root'));
4 changes: 2 additions & 2 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = merge(common, {
devServer: {
contentBase: './dist',
hot: true,
historyApiFallback: true
}
historyApiFallback: true,
},
});

0 comments on commit d8a814c

Please sign in to comment.