-
Notifications
You must be signed in to change notification settings - Fork 3
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 #12 from hypercerts-org/feature/board-designs
feat/ownership-table
- Loading branch information
Showing
24 changed files
with
772 additions
and
140 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink } from "@chakra-ui/react"; | ||
import { BiChevronRight } from "react-icons/bi"; | ||
|
||
export interface BreadcrumbEntry { | ||
name: string; | ||
onClick: () => void; | ||
isActive?: boolean; | ||
} | ||
|
||
export interface BreadcrumbsProps { | ||
crumbs: BreadcrumbEntry[]; | ||
} | ||
export const Breadcrumbs = ({ crumbs }: BreadcrumbsProps) => { | ||
return ( | ||
<Breadcrumb separator={<BiChevronRight color="gray.500" />}> | ||
{crumbs.map((crumb) => ( | ||
<BreadcrumbItem | ||
isCurrentPage={crumb.isActive} | ||
key={crumb.name} | ||
onClick={crumb.onClick} | ||
> | ||
<BreadcrumbLink>{crumb.name}</BreadcrumbLink> | ||
</BreadcrumbItem> | ||
))} | ||
</Breadcrumb> | ||
); | ||
}; |
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
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.