Skip to content

Commit

Permalink
Merge pull request #282 from KakaoFunding/feat/242
Browse files Browse the repository at this point in the history
Feat/242
  • Loading branch information
devkyoung2 authored May 23, 2024
2 parents 90e7175 + 89e086c commit 88cdb03
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
19 changes: 19 additions & 0 deletions src/components/ui/Tabs/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,22 @@
}
}
}

.funding_history {
.wrapper_tab {
width: 50%;
text-align: center;
padding: 14px 0;
line-height: 22px;
font-weight: 400;

&.on {
font-weight: 700;
border-bottom: 4px solid #000;

.txt_name {
color: #000;
}
}
}
}
2 changes: 1 addition & 1 deletion src/components/ui/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import styles from './index.module.scss';
type TabProps = {
initialTabId: Tab['id'];
tabs: Tab[];
mode: 'product_list' | 'product_detail';
mode: 'product_list' | 'product_detail' | 'funding_history';
};

const Tabs = ({ initialTabId = 0, tabs, mode }: TabProps) => {
Expand Down
9 changes: 9 additions & 0 deletions src/pages/MyPage/FundingHistory/index.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@import 'styles/mixins.module';

.title {
@include font(28px, 800);

margin: 40px 0 30px;
line-height: 38px;
white-space: pre-line;
}
27 changes: 26 additions & 1 deletion src/pages/MyPage/FundingHistory/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
import Tabs from 'components/ui/Tabs';

import { Tab } from 'types/tab';

import styles from './index.module.scss';

const userName = '보경';
const FundingHistory = () => {
return <>펀딩내역</>;
const tabs: Tab[] = [
{
id: 0,
name: '내가 등록한 펀딩',
content: <>내가 등록한 펀딩</>,
},
{
id: 1,
name: '내가 기여한 펀딩',
content: <>내가 기여한 펀딩</>,
},
];

return (
<>
<div className={styles.title}>{`${userName}님의 \n펀딩내역`}</div>
<Tabs initialTabId={0} mode="funding_history" tabs={tabs} />
</>
);
};

export default FundingHistory;

0 comments on commit 88cdb03

Please sign in to comment.