Skip to content

Commit

Permalink
Change order of nav items on Sidebar and BottomNav
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatrakazas committed Apr 26, 2024
1 parent 69d08f2 commit 2f8527a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/BottomNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const BottomNav = ({ isOpen, toggle }) => {

const navItems = [
{ icon: <FaWallet size={26} />, path: '/', alias: '/cb', label: `${t("common.navItemCredentials")}` },
{ icon: <IoIosTime size={26} />, path: '/history', label: `${t("common.navItemHistory")}` },
{ icon: <IoIosAddCircle size={26} />, path: '/add', label: `${t("common.navItemAddCredentialsSimple")}` },
{ icon: <IoIosSend size={26} />, path: '/send', label: `${t("common.navItemSendCredentialsSimple")}` },
{ icon: <IoIosTime size={26} />, path: '/history', label: `${t("common.navItemHistory")}` },
];

const handleNavigate = (path) => {
Expand Down
12 changes: 6 additions & 6 deletions src/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,6 @@ const Sidebar = ({ isOpen, toggle }) => {
<span>{t("common.navItemCredentials")}</span>
</NavItem>
</div>
<div className='max480:hidden'>
<NavItem path="/history" location={location} handleNavigate={handleNavigate}>
<IoIosTime size={30} />
<span>{t("common.navItemHistory")}</span>
</NavItem>
</div>
<div className='max480:hidden'>
<NavItem path="/add" location={location} handleNavigate={handleNavigate}>
<IoIosAddCircle size={30} />
Expand All @@ -135,6 +129,12 @@ const Sidebar = ({ isOpen, toggle }) => {
<span>{t("common.navItemSendCredentials")}</span>
</NavItem>
</div>
<div className='max480:hidden'>
<NavItem path="/history" location={location} handleNavigate={handleNavigate}>
<IoIosTime size={30} />
<span>{t("common.navItemHistory")}</span>
</NavItem>
</div>
<NavItem path="/settings" location={location} handleNavigate={handleNavigate}>
<IoMdSettings size={30} />
<span>{t("common.navItemSettings")}</span>
Expand Down

0 comments on commit 2f8527a

Please sign in to comment.