Browse Source

feat: add about menu item

develop
Apostolos Fanakis 4 years ago
parent
commit
73985c27d4
  1. 1
      packages/concordia-app/public/locales/en/translation.json
  2. 5
      packages/concordia-app/src/Routes.jsx
  3. 8
      packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/index.jsx
  4. 12
      packages/concordia-app/src/views/About/index.jsx

1
packages/concordia-app/public/locales/en/translation.json

@ -62,6 +62,7 @@
"register.form.sign.up.step.error.message.header": "Form contains errors",
"register.form.sign.up.step.title": "Sign Up",
"register.p.account.address": "Account address:",
"topbar.button.about": "About",
"topbar.button.clear.databases": "Clear databases",
"topbar.button.create.topic": "Create topic",
"topbar.button.profile": "Profile",

5
packages/concordia-app/src/Routes.jsx

@ -39,6 +39,11 @@ const routesConfig = [
path: '/home',
component: lazy(() => import('./views/Home')),
},
{
exact: true,
path: '/about',
component: lazy(() => import('./views/About')),
},
{
exact: true,
path: '/topics/:id(\\bnew\\b|\\d+)',

8
packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/index.jsx

@ -83,6 +83,14 @@ const MainLayoutMenu = () => {
>
{t('topbar.button.clear.databases')}
</Dropdown.Item>
<Dropdown.Item
link
name="about"
key="about"
onClick={() => { history.push('/about'); }}
>
{t('topbar.button.about')}
</Dropdown.Item>
</Dropdown.Menu>
</Dropdown>

12
packages/concordia-app/src/views/About/index.jsx

@ -0,0 +1,12 @@
import React, {
memo, useMemo,
} from 'react';
import { Container } from 'semantic-ui-react';
const About = () => useMemo(() => (
<Container id="about-container" textAlign="center">
TODO
</Container>
), []);
export default memo(About);
Loading…
Cancel
Save