From 576359fe704ebbcc989228e7df54a2fe1feaca19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A3=BC=ED=98=95?= <80684730+juhyeong0505@users.noreply.github.com> Date: Sun, 13 Oct 2024 12:18:01 +0900 Subject: [PATCH] chore(fe): create signup hover (#2143) --- .../components/auth/SignUpRegister.tsx | 60 ++++++++++++------- 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/apps/frontend/components/auth/SignUpRegister.tsx b/apps/frontend/components/auth/SignUpRegister.tsx index 94878d5e0e..45c519a932 100644 --- a/apps/frontend/components/auth/SignUpRegister.tsx +++ b/apps/frontend/components/auth/SignUpRegister.tsx @@ -15,6 +15,12 @@ import { PopoverTrigger } from '@/components/ui/popover' import { ScrollArea } from '@/components/ui/scroll-area' +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger +} from '@/components/ui/tooltip' import { baseUrl } from '@/lib/constants' import { majors } from '@/lib/constants' import { cn } from '@/lib/utils' @@ -551,28 +557,38 @@ export default function SignUpRegister() { No major found. - - {majors?.map((major) => ( - { - setMajorValue(currentValue) - setMajorOpen(false) - }} - > - -

- {major} -

-
- ))} -
+ + + {majors?.map((major) => ( + + + { + setMajorValue(currentValue) + setMajorOpen(false) + }} + > + +

+ {major} +

+
+
+ +

{major}

+
+
+ ))} +
+