-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from Quiddlee/feature/nav-bar-aptive
Feature/nav bar aptive
- Loading branch information
Showing
17 changed files
with
487 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import NavItem from '@components/Nav/ui/NavItem'; | ||
import ROUTES from '@shared/constants/routes'; | ||
import { useLanguage } from '@shared/Context/hooks'; | ||
import cn from '@shared/lib/helpers/cn'; | ||
import Icon from '@shared/ui/Icon'; | ||
|
||
const NavigationBar = () => { | ||
const { translation } = useLanguage(); | ||
|
||
return ( | ||
<ul className={cn('flex h-full w-full items-center justify-around gap-4 bg-surface lg:block lg:w-full')}> | ||
<NavItem className="min-w-[60px]" data-testid="nav-welcome" to={ROUTES.WELCOME_PAGE}> | ||
<div className="grid justify-items-center gap-2"> | ||
<Icon>spa</Icon> | ||
<span className={cn('block text-sm lg:hidden')}>{translation.nav.navbar.welcome}</span> | ||
</div> | ||
</NavItem> | ||
|
||
<NavItem className="min-w-[60px]" data-testid="nav-settings" to={ROUTES.SETTINGS}> | ||
<div className="grid justify-items-center gap-2"> | ||
<Icon>settings</Icon> | ||
<span className={cn('block text-sm lg:hidden')}>{translation.nav.navbar.settings}</span> | ||
</div> | ||
</NavItem> | ||
</ul> | ||
); | ||
}; | ||
|
||
export default NavigationBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.