Skip to content

Commit

Permalink
feat:mypage 내가푼문제
Browse files Browse the repository at this point in the history
  • Loading branch information
kim sun hong authored and sunhong06 committed Nov 4, 2023
1 parent e68c519 commit 34f9f36
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/unit/Mypage/MypageBoard/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const BoardTable = styled.table`
`;

export const Thead = styled.th`
padding: 2rem 0 1rem;
padding: 1.5rem;
${FONT.BOLD_16}
`;

Expand Down
43 changes: 43 additions & 0 deletions src/components/unit/Mypage/MypageQuestion/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import React from 'react';
import {
BoardTable,
BoardTitle,
MypageBoardInner,
MypageBoardWrapper,
Thead,
} from '../MypageBoard/style';

function MypageQuestion() {
return (
<MypageBoardWrapper>
<BoardTitle>내가 풀은 문제</BoardTitle>
<MypageBoardInner>
<BoardTable cellSpacing={0}>
<colgroup>
<col width={'10%'} />
<col width={'45%'} />
<col width={'25%'} />
<col width={'10%'} />
<col width={'10%'} />
</colgroup>
<thead>
<tr>
<Thead>NO.</Thead>
<Thead>문제이름</Thead>
<Thead>카테고리</Thead>
<Thead>맞춘문제</Thead>
<Thead>틀린문제</Thead>
</tr>
</thead>
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</BoardTable>
</MypageBoardInner>
</MypageBoardWrapper>
);
}

export default MypageQuestion;
3 changes: 3 additions & 0 deletions src/components/unit/Mypage/MypageQuestion/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import styled from 'styled-components';

export {};
2 changes: 2 additions & 0 deletions src/pages/MyPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as S from './style';
import MypageBoard from 'components/unit/Mypage/MypageBoard';
import MypageMyInfo from 'components/unit/Mypage/MypageMyInfo';
import MypageQuestion from 'components/unit/Mypage/MypageQuestion';
import { useGetImg } from 'hooks/mypage/useGetImg';
import { useGetMypage } from 'hooks/mypage/useGetMypage';
import { useGetStatus } from 'hooks/mypage/useGetStatus';
Expand Down Expand Up @@ -56,6 +57,7 @@ const MyPage = () => {
onValid={onValid}
/>
<MypageBoard handleDetail={handleDetail} />
<MypageQuestion />
</S.MyPageInfoWrapper>
</S.MyPageWrapper>
);
Expand Down

0 comments on commit 34f9f36

Please sign in to comment.