Skip to content

Commit

Permalink
style: change add category button to icon on addtool page
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcasstlesjones committed Dec 12, 2024
1 parent 3d5e5ec commit eaf67fd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/app/toolkit/add-tool/components/AddToolTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useAddToolForm } from "@/context/AddToolContext";
import Button from "@/ui/shared/Button";
import Modal from "@/ui/shared/Modal";
import { useDatabase } from "@/context/DatabaseContext";
import { PlusCircleIcon } from "@heroicons/react/24/outline";

interface Categories {
id: string;
Expand Down Expand Up @@ -87,11 +88,17 @@ export default function AddTags() {
ariaPressed={formState.categories.includes(category)}
/>
))}
<Button
{/* <Button
label="+ New Category"
onClick={() => setModalOpen(true)}
className="bg-twd-secondary-purple text-white"
/>
/> */}
<button
onClick={() => setModalOpen(true)}
className="flex justify-center items-center"
>
<PlusCircleIcon className="w-7 m-auto" />
</button>
</div>

<Modal
Expand Down

0 comments on commit eaf67fd

Please sign in to comment.