From 39eff114937796812dc1a7ad10e060107cb4e641 Mon Sep 17 00:00:00 2001 From: TaehunLee <85233397+Todari@users.noreply.github.com> Date: Fri, 23 Aug 2024 00:05:39 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=96=89=EC=82=AC=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=20=EC=99=84=EB=A3=8C=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20(#478)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompleteCreateEventPage.tsx | 39 ++----------------- 1 file changed, 3 insertions(+), 36 deletions(-) diff --git a/client/src/pages/CreateEventPage/CompleteCreateEventPage.tsx b/client/src/pages/CreateEventPage/CompleteCreateEventPage.tsx index f7549563f..13af31a8d 100644 --- a/client/src/pages/CreateEventPage/CompleteCreateEventPage.tsx +++ b/client/src/pages/CreateEventPage/CompleteCreateEventPage.tsx @@ -1,11 +1,5 @@ import {useLocation, useNavigate} from 'react-router-dom'; -import {Button, FixedButton, Flex, Input, MainLayout, Text, Title, TopNav} from 'haengdong-design'; -import {CopyToClipboard} from 'react-copy-to-clipboard'; -import {css} from '@emotion/react'; - -import {useToast} from '@hooks/useToast/useToast'; - -import getEventPageUrlByEnvironment from '@utils/getEventPageUrlByEnvironment'; +import {FixedButton, MainLayout, Title, TopNav} from 'haengdong-design'; import {ROUTER_URLS} from '@constants/routerUrls'; @@ -16,41 +10,14 @@ const CompleteCreateEventPage = () => { const params = new URLSearchParams(location.search); const eventId = params.get('eventId'); - const {showToast} = useToast(); - - const homePageUrl = getEventPageUrlByEnvironment(eventId ?? '', 'home'); - return ( - <div css={css({display: 'flex', flexDirection: 'column', gap: '1rem', margin: '0 1rem'})}> - <Flex flexDirection="column"> - <Text textColor="gray">링크가 없으면 페이지에 접근할 수 없어요.</Text> - <Text textColor="primary">관리를 위해서 행사 링크를 복사 후 보관해 주세요.</Text> - </Flex> - <Input value={homePageUrl} disabled /> - - <CopyToClipboard - text={homePageUrl} - onCopy={() => - showToast({ - showingTime: 3000, - message: '링크가 복사되었어요 :) \n링크를 절대 분실하지 마세요!', - type: 'confirm', - position: 'bottom', - bottom: '8rem', - }) - } - > - <Button size="large" variants="tertiary"> - 행사 링크 복사하기 - </Button> - </CopyToClipboard> - </div> <FixedButton onClick={() => navigate(`${ROUTER_URLS.event}/${eventId}/admin`)}>관리 페이지로 이동</FixedButton> </MainLayout>