12345678910111213141516171819202122232425262728293031323334 |
- import React from 'react';
- import { useTranslation } from './translate';
- import { Route, Switch } from 'react-router';
- import { Tabs } from '@polkadot/react-components';
- import Overview from './Overview';
- import { AppProps } from '@polkadot/react-components/types';
- type Props = AppProps
- function App ({ basePath }: Props): React.ReactElement<Props> {
- const { t } = useTranslation();
- return (
- <main>
- <header>
- <Tabs
- basePath={basePath}
- items={[
- {
- isRoot: true,
- name: 'overview',
- text: t('Tokenomics')
- }
- ]}
- />
- </header>
- <Switch>
- <Route component={Overview} />
- </Switch>
- </main>
- );
- }
- export default App;
|