Skip to content

Commit

Permalink
fix: meta태그 이미지 수정, 페이지 이탈 모달 관리
Browse files Browse the repository at this point in the history
  • Loading branch information
se0jinYoon committed Oct 9, 2024
1 parent 9693843 commit 7489efd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
property="og:description"
content="오직 글쓰기 모임을 위한 블로그, 마일에서 모임원들과 함께 글을 쓰며 여러분 만의 공간을 만들어보세요"
/>
<!-- <meta property="og:image" content="{mileLinkImg}" /> -->
<meta property="og:image" content="https://github.com/user-attachments/assets/52ce1a54-3429-4d0d-9801-e7cda913596f" />
<meta property="og:url" content="https://www.milewriting.com/" />
<meta property="og:type" content="website" />

Expand Down
1 change: 0 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import styled from '@emotion/styled';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import router from './routers/Router';
// import mileLinkImg from '../src/assets/images/mileLinkImg.png';
import { RouterProvider } from 'react-router-dom';
import { Suspense } from 'react';
import Loading from './pages/loading/Loading';
Expand Down
7 changes: 6 additions & 1 deletion src/pages/admin/components/RenderAdminContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ const RenderAdminContent = ({ admin }: { admin: 'topic' | 'member' | 'groupInfo'

const { mutate: deleteGroup, isPending, isError } = useDeleteGroup(groupId || '');

const handleDeleteGroup = () => {
deleteGroup();
setIgnoreBlocker(true);
};

if (isError) {
return <Error />;
}
Expand Down Expand Up @@ -110,7 +115,7 @@ const RenderAdminContent = ({ admin }: { admin: 'topic' | 'member' | 'groupInfo'
>
<DefaultModalBtn
btnText={['예', '아니요']}
onClickLeft={deleteGroup}
onClickLeft={handleDeleteGroup}
onClickRight={handleCloseModal}
/>
</DefaultModal>
Expand Down

0 comments on commit 7489efd

Please sign in to comment.