Skip to content

Commit

Permalink
feat: 기존 토스트 방식에서 개선된 토스트방식으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pakxe committed Sep 21, 2024
1 parent 6572204 commit 45f9071
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions client/src/components/ShareEventButton/ShareEventButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import CopyToClipboard from 'react-copy-to-clipboard';

import {useToast} from '@hooks/useToast/useToast';
import toast from '@hooks/useToast/toast';

import useShareEvent from '@hooks/useShareEvent';

Expand All @@ -9,8 +9,6 @@ import {Button} from '@components/Design';
import isMobileDevice from '@utils/isMobileDevice';

const ShareEventButton = () => {
const {showToast} = useToast();

const isMobile = isMobileDevice();
const {shareText, onShareButtonClick} = useShareEvent(isMobile);

Expand All @@ -22,12 +20,9 @@ const ShareEventButton = () => {
<CopyToClipboard
text={shareText}
onCopy={() =>
showToast({
toast.confirm('링크가 복사되었어요 :) \n참여자들에게 링크를 공유해 주세요!', {
showingTime: 3000,
message: '링크가 복사되었어요 :) \n참여자들에게 링크를 공유해 주세요!',
type: 'confirm',
position: 'bottom',
bottom: '8rem',
})
}
>
Expand Down

0 comments on commit 45f9071

Please sign in to comment.