-
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.
Co-authored-by: Mehdi Hamri <[email protected]>
- Loading branch information
1 parent
bb7c80b
commit 0769cc9
Showing
10 changed files
with
63 additions
and
10 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
4 changes: 2 additions & 2 deletions
4
.../navigation/primary-menu/primary-menu.tsx → ...gation/menu/primary-menu/primary-menu.tsx
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...igation/secondary-menu/secondary-menu.tsx → ...on/menu/secondary-menu/secondary-menu.tsx
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
File renamed without changes.
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
File renamed without changes.
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
38 changes: 38 additions & 0 deletions
38
shared/features/navigation/secondary-navigation/secondary-navigation.tsx
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,38 @@ | ||
"use client"; | ||
|
||
import { Breadcrumbs } from "@/design-system/atoms/breadcrumbs"; | ||
import { Button } from "@/design-system/atoms/button/variants/button-default"; | ||
import { Icon } from "@/design-system/atoms/icon"; | ||
import { Paper } from "@/design-system/atoms/paper"; | ||
|
||
import { SecondaryNavigationTypes } from "@/shared/features/navigation/secondary-navigation/secondary-navigation.types"; | ||
|
||
export function SecondaryNavigation({ iconName, breadcrumbs, onBack }: SecondaryNavigationTypes) { | ||
return ( | ||
<Paper | ||
as={"header"} | ||
size={"s"} | ||
container={"2"} | ||
border={"none"} | ||
classNames={{ base: "flex justify-between items-center gap-3" }} | ||
> | ||
<div className={"flex items-center gap-2"}> | ||
{onBack ? ( | ||
<Button | ||
variant={"secondary-light"} | ||
size={"l"} | ||
startIcon={{ name: "ri-arrow-left-s-line" }} | ||
hideText | ||
onClick={onBack} | ||
/> | ||
) : null} | ||
<Icon name={iconName} size={24} /> | ||
<Breadcrumbs items={breadcrumbs} /> | ||
</div> | ||
|
||
<div> | ||
<Button variant={"secondary-light"} size={"l"} startIcon={{ name: "ri-notification-3-line" }} hideText /> | ||
</div> | ||
</Paper> | ||
); | ||
} |
8 changes: 8 additions & 0 deletions
8
shared/features/navigation/secondary-navigation/secondary-navigation.types.ts
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,8 @@ | ||
import { BreadcrumbsPort } from "@/design-system/atoms/breadcrumbs"; | ||
import { IconPort } from "@/design-system/atoms/icon"; | ||
|
||
export interface SecondaryNavigationTypes { | ||
iconName: IconPort["name"]; | ||
breadcrumbs: BreadcrumbsPort["items"]; | ||
onBack?: () => void; | ||
} |