Skip to content

Commit

Permalink
feat: added home to locales json
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakia committed Feb 20, 2024
1 parent 52bbd26 commit 8b44da1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
"glossary": "Glossary",
"guides": "Guides",
"history": "History",
"home": "Home",
"how_it_works": "How it works",
"integrations": "Integrations",
"investment_thesis": "Investment thesis",
Expand Down
3 changes: 2 additions & 1 deletion src/views/components/menu/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ function MenuSections() {

export default function Menu({ hide, hideSearch, hide_speed_dial }) {
const [open, setOpen] = useState(false)
const { t } = useTranslation()

const handleOpen = () => setOpen(true)
const handleClose = () => setOpen(false)
Expand Down Expand Up @@ -204,7 +205,7 @@ export default function Menu({ hide, hideSearch, hide_speed_dial }) {
{!isHome && (
<SpeedDialAction
icon={<HomeIcon />}
tooltipTitle='Home'
tooltipTitle={t('menu.home', 'Home')}
tooltipPlacement={isMobile ? 'left' : 'right'}
onClick={handleHomeClick}
/>
Expand Down

0 comments on commit 8b44da1

Please sign in to comment.