Skip to content

Commit

Permalink
feat: 툴팁 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrin-byte committed Jan 6, 2025
1 parent 5e32212 commit 167698c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 82 deletions.
80 changes: 0 additions & 80 deletions app/admin/(components)/ThemeInfo/ThemeImage.tsx

This file was deleted.

12 changes: 10 additions & 2 deletions app/admin/(components)/ThemeInfo/ThemeTimerImage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/image";
import React, { ChangeEvent, useRef } from "react";
import React, { ChangeEvent, useRef, useState } from "react";

import Dialog from "@/components/common/Dialog-new/Image-Dialog-new/Dialog";
import PreviewDialog from "@/components/common/Dialog-new/Preview-Dialog-new/PreviewDialog";
Expand All @@ -8,6 +8,7 @@ import { useTimerImageWrite } from "@/components/atoms/timerImage.atom";
import { useSelectedThemeValue } from "@/components/atoms/selectedTheme.atom";
import { defaultTimerImage, QuestionIconProps } from "@/admin/(consts)/sidebar";
import DeleteDialog from "@/components/common/Dialog-new/Timer-Image-Delete-Dialog/DeleteDialog";
import Tooltip from "@/admin/(components)/Tooltip/Container";

export default function ThemeTimerImage() {
const selectedTheme = useSelectedThemeValue();
Expand Down Expand Up @@ -52,12 +53,19 @@ export default function ThemeTimerImage() {
const handleDelTimerImageBtnClick = () => {
open(DeleteDialog);
};
const [isHovered, setIsHovered] = useState(false);

return (
<div className="theme_image__container">
<div className="theme-image-title">
<span>타이머 배경</span>
<Image {...QuestionIconProps} />
<Image
{...QuestionIconProps}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
className="tooptip-button"
/>
{isHovered && <Tooltip />}
</div>
<div className="theme-images">
<div className="theme-image-box">
Expand Down

0 comments on commit 167698c

Please sign in to comment.