-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
4 changed files
with
20 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
import DropDownLink from "./DropDownLink"; | ||
|
||
export default function DropDown({ name }: { name: string }) { | ||
|
||
return ( | ||
<div className="dropdown py-0 mx-1 dropdown-bottom"> | ||
<label tabIndex={0} className="btn m-0 p-0 bg-transparent border-none hover:border-none hover:bg-transparent">{ name }</label> | ||
<ul tabIndex={0} className="dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box right-0"> | ||
<label | ||
tabIndex={0} | ||
className="btn m-0 p-0 bg-transparent border-none hover:border-none hover:bg-transparent" | ||
> | ||
{name} | ||
</label> | ||
<ul | ||
tabIndex={0} | ||
className="dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box right-0" | ||
> | ||
<DropDownLink title="Link 1" /> | ||
<DropDownLink | ||
title="404???" | ||
href="/hello404" | ||
/> | ||
<DropDownLink title="404???" href="/hello404" /> | ||
</ul> | ||
</div> | ||
|
||
); | ||
} |
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