Skip to content

Commit

Permalink
Add link to curre chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Veikkosuhonen committed Apr 4, 2024
1 parent 6994249 commit d97714d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/client/components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
Language,
AdminPanelSettingsOutlined,
LoginOutlined,
Assistant,
} from '@mui/icons-material'
import { useTranslation } from 'react-i18next'

Expand Down Expand Up @@ -62,6 +63,12 @@ const NavBar = () => {
</Box>
</Box>
<Box>
<ExternalLink to="/chat" style={{ textDecoration: 'none' }}>
<Button>
<Assistant sx={navStyles.icon} />{' '}
{t('chat')}
</Button>
</ExternalLink>
{location.pathname !== '/public' && user?.isAdmin && (
<Link to="/admin" style={{ textDecoration: 'none' }}>
<Button>
Expand Down
1 change: 1 addition & 0 deletions src/client/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"openForm": "Proceed to the questions",
"admin": "Admin",
"login": "Login",
"chat": "Chat",
"submitError": "Sending the results failed, please try again shortly"
},
"footer": {
Expand Down
1 change: 1 addition & 0 deletions src/client/locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"reset": "Aloita alusta",
"openForm": "Jatka kysymyksiin",
"admin": "ylläpito",
"chat": "Chat",
"login": "Kirjaudu sisään",
"submitError": "Tulosten lähettäminen epäonnistui, kokeile uudelleen hetken päästä"
},
Expand Down
1 change: 1 addition & 0 deletions src/client/locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"openForm": "Fortsätt till frågorna",
"admin": "administration",
"login": "Login",
"chat": "Chat",
"submitError": "Tulosten lähettäminen epäonnistui, kokeile uudelleen hetken päästä"
},
"footer": {
Expand Down

0 comments on commit d97714d

Please sign in to comment.