Skip to content

Commit

Permalink
refactor: pdf 저장 준비중 토스트로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoribogo committed Dec 4, 2023
1 parent b2a7794 commit 33cf906
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/ReviewResultPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from 'chart.js'
import dayjs from 'dayjs'
import { useLocation } from 'react-router-dom'
import { useToast } from '@/hooks'
import { Header, ReviewInfo } from '@/components'
import { useGetReceivedReview } from '@/apis/hooks'
import { DoughnutChart, RadarChart, StarChart } from './components'
Expand All @@ -36,6 +37,8 @@ const ReviewResultPage = () => {

const { title, description, updatedAt, userName } = review

const { addToast } = useToast()

return (
<div className="h-full">
<Header />
Expand Down Expand Up @@ -99,7 +102,9 @@ const ReviewResultPage = () => {
</ul>
<button
className="btn mt-5 self-end rounded-md border border-gray-200 bg-main-hover-yellow text-base dark:border-gray-200 dark:bg-gray-300 dark:text-white md:text-lg"
onClick={() => window.print()}
onClick={() =>
addToast({ message: '아직 준비중인 기능이에요 😥', type: 'info' })
}
>
pdf로 저장
</button>
Expand Down

0 comments on commit 33cf906

Please sign in to comment.