Skip to content

Commit

Permalink
chore: #377 연락처 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
leeminhee119 committed Sep 12, 2024
1 parent 668d9ec commit 5815e7b
Showing 1 changed file with 5 additions and 28 deletions.
33 changes: 5 additions & 28 deletions apps/web/src/layout/GlobalLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { BottomSheet } from "@/component/BottomSheet";
import { ButtonProvider } from "@/component/common/button";
import { Icon } from "@/component/common/Icon";
import { Modal } from "@/component/common/Modal";
import { Spacing } from "@/component/common/Spacing";
import { Typography } from "@/component/common/typography";
import { useBottomSheet } from "@/hooks/useBottomSheet";
import { useToast } from "@/hooks/useToast";
Expand Down Expand Up @@ -70,7 +71,6 @@ export default function GlobalLayout() {

const Announcement = ({ onConfirm }: { onConfirm: () => void }) => {
const { toast } = useToast();
const PHONE = "010-3747-4646";
const EMAIL = "gentlemonster77@likelion.org";

return (
Expand Down Expand Up @@ -130,33 +130,6 @@ const Announcement = ({ onConfirm }: { onConfirm: () => void }) => {
고객센터`}
</Typography>
<div
css={css`
display: flex;
gap: 1rem;
`}
>
<Typography variant={"body16Medium"} color={"gray600"}>
연락처 :
</Typography>
<Typography
variant={"body16Medium"}
color={"blue500"}
css={css`
text-decoration: underline;
`}
onClick={async () => {
try {
await navigator.clipboard.writeText(PHONE.split("-").join(""));
toast.success(`연락처가 클립보드에 복사되었습니다`);
} catch (e) {
toast.success("다시 시도해주세요");
}
}}
>
{PHONE}
</Typography>
</div>
<div
css={css`
display: flex;
Expand Down Expand Up @@ -184,6 +157,10 @@ const Announcement = ({ onConfirm }: { onConfirm: () => void }) => {
{EMAIL}
</Typography>
</div>
<Spacing size={3} />
<Typography variant={"body16Medium"} color={"gray600"}>
감사합니다.
</Typography>
</div>

<ButtonProvider.Primary onClick={onConfirm}>확인</ButtonProvider.Primary>
Expand Down

0 comments on commit 5815e7b

Please sign in to comment.