UNPKG

lemail2

Version:
37 lines (30 loc) 928 B
import React from 'react'; import { Switch, Route } from 'react-router-dom'; import { NotFound } from 'strapi-helper-plugin'; // Utils import { Fonts } from '@buffetjs/styles'; import styled from 'styled-components'; import pluginId from '../../pluginId'; // Containers import HomePage from '../HomePage'; import HowToPage from '../HowToPage'; import Designer from '../Designer'; const Container = styled.div` display: flex; height: 100%; `; const App = () => { return ( <Container> <Fonts /> {/* <GlobalStyle /> */} <Switch> <Route path={`/plugins/${pluginId}`} component={HomePage} exact /> <Route path={`/plugins/${pluginId}/how-to`} component={HowToPage} exact /> <Route path={`/plugins/${pluginId}/design/:templateId`} component={() => <Designer isNew />} exact /> <Route component={NotFound} /> </Switch> </Container> ); }; export default App;