Skip to content

Commit

Permalink
Merge pull request #122 from 1989ONCE/main
Browse files Browse the repository at this point in the history
add package: heroicons, flowbite icon
  • Loading branch information
1989ONCE authored Nov 14, 2024
2 parents a2b8fcf + 7476ae4 commit 7134cae
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"dependencies": {
"@supabase/supabase-js": "^2.45.3",
"@tanstack/react-router": "^1.56.2",
"flowbite-react-icons": "^1.1.0",
"heroicons": "^2.1.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"supabase": "^1.200.3"
Expand Down
7 changes: 4 additions & 3 deletions src/components/DrawerOption.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Link } from "@tanstack/react-router";
import { CaretDown, CaretRight } from "flowbite-react-icons/solid";
import { useState } from "react";
import { HStack, SidebarArrowDownIcon, SidebarArrowRightIcon, VStack } from "../components";
import { HStack, VStack } from "../components";

const options = [
{ name: "首頁", engName: "Home", pageNav: "/" },
Expand Down Expand Up @@ -29,9 +30,9 @@ export const DrawerOption = () => {
<HStack className="bg-blue-200" key={option.name}>
<div className="flex items-center" onClick={() => toggleOption(option.name)}>
{openOptions[option.name] ? (
<SidebarArrowDownIcon fill="currentColor" stroke={"#B1B1B1"} size={20} />
<CaretDown />
) : (
<SidebarArrowRightIcon fill="currentColor" stroke={"#B1B1B1"} size={20} />
<CaretRight />
)}
</div>
<Link to={option.pageNav}>
Expand Down

0 comments on commit 7134cae

Please sign in to comment.