Skip to content

Commit

Permalink
fix: 이메일 등록 기능 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
corinthionia committed Jul 31, 2023
1 parent 17bfd94 commit d119aca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
6 changes: 0 additions & 6 deletions src/atoms/emailAtoms.ts

This file was deleted.

11 changes: 1 addition & 10 deletions src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import headerMenu from '../../assets/icons/headerMenu.svg';
import headerInfo from '../../assets/icons/headerInfo.svg';

import { useRecoilState } from 'recoil';
import { emailState } from '../../atoms/emailAtoms';
import { isTooltipShownState } from '../../atoms/isTooltipShownAtoms';

import { useParams } from 'react-router-dom';
Expand All @@ -19,7 +18,6 @@ import { useState } from 'react';
const Header = ({ pageName, title }: { pageName: string; title: string }) => {
const { roomUUID } = useParams();

const [isEmailRegistered] = useRecoilState(emailState);
const [, setIsTooltipShown] = useRecoilState(isTooltipShownState);

const [isMenuOpened, setIsMenuOpened] = useState<boolean>(false);
Expand Down Expand Up @@ -47,14 +45,7 @@ const Header = ({ pageName, title }: { pageName: string; title: string }) => {
/>
)}

{pageName === 'result' && (
<Icon
src={isEmailRegistered ? emailRegistered : emailDefault}
alt={isEmailRegistered ? 'email registered' : 'email default'}
/>
)}

{pageName === 'current' && (
{(pageName === 'current' || pageName === 'result') && (
<CopyToClipboard
text={currentUrl}
onCopy={() => alert('클립보드에 복사되었습니다.')}
Expand Down

0 comments on commit d119aca

Please sign in to comment.