This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
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.
- Loading branch information
1 parent
682e4f3
commit ab5a4b3
Showing
5 changed files
with
47 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
import { BreadcrumbItem, Breadcrumbs } from "@nextui-org/react"; | ||
import React from "react"; | ||
import { Breadcrumbs, BreadcrumbItem } from "@nextui-org/react"; | ||
|
||
export default function NavTorunaments() { | ||
const [currentPage, setCurrentPage] = React.useState("music"); | ||
const [currentPage, setCurrentPage] = React.useState("music"); | ||
|
||
return ( | ||
<Breadcrumbs | ||
size="md" | ||
onAction={(key) => setCurrentPage(key)} | ||
classNames={{ | ||
list: "gap-2", | ||
}} | ||
itemClasses={{ | ||
item: [ | ||
"px-5 py-1 border-small border-default-400 rounded-small", | ||
"data-[current=true]:border-foreground data-[current=true]:bg-foreground data-[current=true]:text-background transition-colors", | ||
"data-[disabled=true]:border-default-400 data-[disabled=true]:bg-default-100", | ||
], | ||
separator: "hidden", | ||
}} | ||
> | ||
<BreadcrumbItem key="home" isCurrent={currentPage === "home"}> | ||
ทั้งหมด | ||
</BreadcrumbItem> | ||
<BreadcrumbItem key="music" isCurrent={currentPage === "music"}> | ||
กำลังจะเปิด | ||
</BreadcrumbItem> | ||
<BreadcrumbItem key="artist" isCurrent={currentPage === "artist"}> | ||
เปิดรับสมัคร | ||
</BreadcrumbItem> | ||
<BreadcrumbItem key="album" isCurrent={currentPage === "album"}> | ||
อยู่ระหว่างการแข่งขัน | ||
</BreadcrumbItem> | ||
<BreadcrumbItem key="song" isCurrent={currentPage === "song"}> | ||
จบการแข่งขัน | ||
</BreadcrumbItem> | ||
</Breadcrumbs> | ||
); | ||
return ( | ||
<Breadcrumbs | ||
classNames={{ | ||
list: "gap-2", | ||
}} | ||
itemClasses={{ | ||
item: [ | ||
"px-5 py-1 border-small border-default-400 rounded-small", | ||
"data-[current=true]:border-foreground data-[current=true]:bg-foreground data-[current=true]:text-background transition-colors", | ||
"data-[disabled=true]:border-default-400 data-[disabled=true]:bg-default-100", | ||
], | ||
separator: "hidden", | ||
}} | ||
onAction={(key) => setCurrentPage(key)} | ||
size="md" | ||
> | ||
<BreadcrumbItem isCurrent={currentPage === "home"} key="home"> | ||
ทั้งหมด | ||
</BreadcrumbItem> | ||
<BreadcrumbItem isCurrent={currentPage === "music"} key="music"> | ||
กำลังจะเปิด | ||
</BreadcrumbItem> | ||
<BreadcrumbItem isCurrent={currentPage === "artist"} key="artist"> | ||
เปิดรับสมัคร | ||
</BreadcrumbItem> | ||
<BreadcrumbItem isCurrent={currentPage === "album"} key="album"> | ||
อยู่ระหว่างการแข่งขัน | ||
</BreadcrumbItem> | ||
<BreadcrumbItem isCurrent={currentPage === "song"} key="song"> | ||
จบการแข่งขัน | ||
</BreadcrumbItem> | ||
</Breadcrumbs> | ||
); | ||
} |
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