]> Untitled Git - lemmy-ui.git/blob - src/shared/components/app.tsx
Partly functioning fuse-box, but moving te webpack now.
[lemmy-ui.git] / src / shared / components / app.tsx
1 import { Component } from 'inferno';
2 import { Route, Switch } from 'inferno-router';
3 /* import { Provider } from 'inferno-i18next'; */
4 /* import { i18n } from './i18next'; */
5 import { routes } from '../../shared/routes';
6 import { Navbar } from '../../shared/components/navbar';
7 import { Footer } from '../../shared/components/footer';
8 import { Symbols } from '../../shared/components/symbols';
9
10 export class App extends Component<any, any> {
11   constructor(props: any, context: any) {
12     super(props, context);
13   }
14
15   render() {
16     return (
17       <>
18         <h1>Hi there!</h1>
19         {/* <Provider i18next={i18n}> */}
20         <div>
21           <Navbar />
22           <div class="mt-4 p-0 fl-1">
23             <Switch>
24               {routes.map(({ path, exact, component: C, ...rest }) => (
25                 <Route
26                   key={path}
27                   path={path}
28                   exact={exact}
29                   render={props => <C {...props} {...rest} />}
30                 />
31               ))}
32               {/* <Route render={(props) => <NoMatch {...props} />} /> */}
33             </Switch>
34             <Symbols />
35           </div>
36           <Footer />
37         </div>
38         {/* </Provider> */}
39       </>
40     );
41   }
42 }