diff --git a/frontend/src/components/ConnectionSection/ConnectionSection.tsx b/frontend/src/components/ConnectionSection/ConnectionSection.tsx index d55a40679..312998b56 100644 --- a/frontend/src/components/ConnectionSection/ConnectionSection.tsx +++ b/frontend/src/components/ConnectionSection/ConnectionSection.tsx @@ -1,4 +1,4 @@ -import { MediumLogoIcon, NotionIcon, TistoryLogoIcon } from 'assets/icons'; +import { MediumLogoIcon, NotionIcon } from 'assets/icons'; import Button from 'components/@common/Button/Button'; import Input from 'components/@common/Input/Input'; import { ConnectionPlatforms } from 'constants/components/myPage'; @@ -10,12 +10,11 @@ import { useConnect } from './useConnect'; import { MAX_WIDTH } from 'constants/style'; type Props = { - tistory: TistoryConnection; medium: MediumConnection; notion: NotionConnection; }; -const ConnectionSection = ({ tistory, medium, notion }: Props) => { +const ConnectionSection = ({ medium, notion }: Props) => { const { inputRef, escapeInput, isInputOpen, openInput, resetInput, isError, setIsError } = useUncontrolledInput(); const { requestStoreMediumInfo, redirect, disconnect } = useConnect(); @@ -41,30 +40,6 @@ const ConnectionSection = ({ tistory, medium, notion }: Props) => { 블로그와 연결하기 - - - - 티스토리 - - {tistory.isConnected ? ( - - ) : ( - - )} - diff --git a/frontend/src/components/PublishingSection/PublishingSection.tsx b/frontend/src/components/PublishingSection/PublishingSection.tsx index 36b7009c4..c3c97d37f 100644 --- a/frontend/src/components/PublishingSection/PublishingSection.tsx +++ b/frontend/src/components/PublishingSection/PublishingSection.tsx @@ -12,11 +12,11 @@ type Props = { }; const PublishingSection = ({ onTabClick, onBlogButtonClick }: Props) => { - const { tistory, medium } = useMember(); + const { medium } = useMember(); const { goMyPage } = usePageNavigate(); - const 블로그가하나라도연결되었는지 = tistory?.isConnected || medium?.isConnected; - const 모든블로그가연결되었는지 = tistory?.isConnected && medium?.isConnected; + const 블로그가하나라도연결되었는지 = medium?.isConnected; + const 모든블로그가연결되었는지 = medium?.isConnected; const openPublishingPropertySection = (blog: Blog) => { onBlogButtonClick(blog); @@ -25,10 +25,6 @@ const PublishingSection = ({ onTabClick, onBlogButtonClick }: Props) => { case 'MEDIUM': onTabClick(TabKeys.MediumPublishingProperty); break; - - case 'TISTORY': - onTabClick(TabKeys.TistoryPublishingProperty); - break; } }; @@ -40,9 +36,7 @@ const PublishingSection = ({ onTabClick, onBlogButtonClick }: Props) => { {Object.values(BLOG_LIST).map((name) => { // 연결 여부 확인을 위한 로직 추가 - const shouldRenderButton = - (name === 'TISTORY' && tistory?.isConnected) || - (name === 'MEDIUM' && medium?.isConnected); + const shouldRenderButton = name === 'MEDIUM' && medium?.isConnected; // 연결이 확인되지 않으면, 버튼을 렌더링하지 않는다. if (!shouldRenderButton) { diff --git a/frontend/src/pages/MyPage/MyPage.tsx b/frontend/src/pages/MyPage/MyPage.tsx index 975cb0389..a850c7218 100644 --- a/frontend/src/pages/MyPage/MyPage.tsx +++ b/frontend/src/pages/MyPage/MyPage.tsx @@ -11,7 +11,7 @@ import { Link } from 'react-router-dom'; import { css, styled } from 'styled-components'; const MyPage = () => { - const { isLoading, name, tistory, medium, notion } = useMember(); + const { isLoading, name, medium, notion } = useMember(); const { goSpacePage } = usePageNavigate(); if (isLoading) @@ -22,7 +22,7 @@ const MyPage = () => { ); - if (!name || !tistory || !medium || !notion) return null; + if (!name || !medium || !notion) return null; return ( @@ -40,7 +40,7 @@ const MyPage = () => { <> - + ) : (