Skip to content

Commit

Permalink
add rtoken symbol to page title
Browse files Browse the repository at this point in the history
  • Loading branch information
larrythecucumber321 committed Oct 4, 2023
1 parent cab8f60 commit 6d16b31
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/layout/navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import IssuanceIcon from 'components/icons/IssuanceIcon'
import ManagerIcon from 'components/icons/ManagerIcon'
import OverviewIcon from 'components/icons/OverviewIcon'
import StakeIcon from 'components/icons/StakeIcon'
import useRToken from 'hooks/useRToken'
import { useAtomValue } from 'jotai'
import mixpanel from 'mixpanel-browser'
import { useMemo } from 'react'
import { useEffect, useMemo } from 'react'
import { NavLink } from 'react-router-dom'
import { chainIdAtom, selectedRTokenAtom } from 'state/atoms'
import { transition } from 'theme'
Expand Down Expand Up @@ -95,6 +96,14 @@ const NavItem = ({
// Sidebar Navigation
const Navigation = () => {
const rTokenAddress = useAtomValue(selectedRTokenAtom)
const rToken = useRToken()

useEffect(() => {
document.title = `${
rToken?.symbol || `Register`
} - Reserve Protocol Interface`
}, [rToken])

const PAGES = useMemo(() => {
const items = [
{ path: ROUTES.OVERVIEW, title: t`Overview`, Icon: OverviewIcon },
Expand Down

0 comments on commit 6d16b31

Please sign in to comment.