From 34675b2a12c112b42b8e86813d5a7b8770e9df7f Mon Sep 17 00:00:00 2001 From: zmeyer44 Date: Mon, 30 Oct 2023 10:36:17 -0400 Subject: [PATCH] new "New Event" ui --- components/Buttons/TileIconButton.tsx | 29 +++++++++++++++ components/Modals/NewEvent.tsx | 51 +++++++++------------------ 2 files changed, 45 insertions(+), 35 deletions(-) create mode 100644 components/Buttons/TileIconButton.tsx diff --git a/components/Buttons/TileIconButton.tsx b/components/Buttons/TileIconButton.tsx new file mode 100644 index 0000000..01e7c02 --- /dev/null +++ b/components/Buttons/TileIconButton.tsx @@ -0,0 +1,29 @@ +import { cn } from "@/lib/utils"; + +type TileIconButtonProps = React.ButtonHTMLAttributes & { + icon: (props: any) => JSX.Element; + label: string; + active?: boolean; +}; + +export default function TileIconButton({ + icon: Icon, + label, + active, + className, + ...props +}: TileIconButtonProps) { + return ( + + ); +} diff --git a/components/Modals/NewEvent.tsx b/components/Modals/NewEvent.tsx index 600e23d..f8beae3 100644 --- a/components/Modals/NewEvent.tsx +++ b/components/Modals/NewEvent.tsx @@ -10,59 +10,40 @@ import { useNDK } from "@/app/_providers/ndk"; import useCurrentUser from "@/lib/hooks/useCurrentUser"; import { HiChatBubbleLeftEllipsis, - HiBookmarkSquare, + HiSquaresPlus, HiNewspaper, HiCalendarDays, } from "react-icons/hi2"; -import { RiSubtractFill, RiAddFill } from "react-icons/ri"; +import { RiCalendarEventFill } from "react-icons/ri"; import { formatCount } from "@/lib/utils"; import LoginModal from "./Login"; import CreateList from "./CreateList"; import ShortTextNoteModal from "./ShortTextNote"; import CreateCalendarEventModal from "./CreateCalendarEvent"; import CreateCalendarModal from "./CreateCalendar"; +import TileIconButton from "../Buttons/TileIconButton"; + export default function NewEventModal() { const modal = useModal(); return ( - );