Skip to content

Commit

Permalink
Hotfix!: 서류 확인 modal 닫기 button 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobbymin committed Aug 19, 2024
1 parent 26fd2a5 commit 1009e5b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/pages/admin/components/docs/ApplyDetailModal.style.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import CloseIcon from '@gdsc/assets/CloseIcon.svg';

import { displayCenter } from '@gdsc/styles/LayoutStyle';

import styled from '@emotion/styled';
Expand Down Expand Up @@ -49,12 +47,14 @@ export const TitleWrapper = styled.h3`
`;

export const CloseBtn = styled.button`
display: flex;
width: 18px;
height: 18px;
background-image: url(${CloseIcon});
background-size: cover;
background-repeat: no-repeat;
background-color: transparent;
align-items: center;
justify-content: center;
border: none;
outline: none;
Expand All @@ -65,6 +65,10 @@ export const CloseBtn = styled.button`
}
`;

export const CloseIconImg = styled.img`
width: 18px;
`;

export const ContentWrapper = styled.div`
width: 100%;
height: 90%;
Expand Down
7 changes: 6 additions & 1 deletion src/pages/admin/components/docs/ApplyDetailModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { useState, useEffect } from 'react';
import CommonBtn from '@gdsc/components/common/button/CommonBtn';
import Text from '@gdsc/components/common/typography/Text';

import CloseIcon from '@gdsc/assets/CloseIcon.svg';

import { useGetDocsDetail } from '@gdsc/apis/hooks/admin/docs/useGetDocsDetail';
import { usePatchMark } from '@gdsc/apis/hooks/admin/docs/usePatchMark';
import { usePatchStatus } from '@gdsc/apis/hooks/admin/docs/usePatchStatus';
Expand All @@ -18,6 +20,7 @@ import {
DividingLine,
SelfIntroduce,
ButtonContainer,
CloseIconImg,
} from './ApplyDetailModal.style';
import ApplyDetailModalSkeleton from './ApplyDetailModalSkeleton';
import ApplyInfo from './ApplyInfo';
Expand Down Expand Up @@ -124,7 +127,9 @@ const ApplyDetailModal = ({
<Text size='xl' weight='bold' color='black'>
지원자 정보 조회
</Text>
<CloseBtn onClick={onClose} />
<CloseBtn onClick={onClose}>
<CloseIconImg src={CloseIcon} alt='close' />
</CloseBtn>
</TitleWrapper>
<ContentWrapper>
<IntroContainer>
Expand Down

0 comments on commit 1009e5b

Please sign in to comment.