-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from bankidz/fix/qa
Fix/qa
- Loading branch information
Showing
13 changed files
with
148 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/components/common/skeletons/SkeletonInterestToPayList.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ComponentStory, ComponentMeta } from '@storybook/react'; | ||
import SkeletonInterestToPayList from './SkeletonInterestToPayList'; | ||
|
||
export default { | ||
title: 'common/skeletons/SkeletonInterestToPayList', | ||
component: SkeletonInterestToPayList, | ||
} as ComponentMeta<typeof SkeletonInterestToPayList>; | ||
|
||
const Template: ComponentStory<typeof SkeletonInterestToPayList> = () => ( | ||
<SkeletonInterestToPayList /> | ||
); | ||
|
||
export const 지급이_필요한_이자 = Template.bind({}); | ||
지급이_필요한_이자.args = {}; |
80 changes: 80 additions & 0 deletions
80
src/components/common/skeletons/SkeletonInterestToPayList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import styled from 'styled-components'; | ||
import SkeletonElement from './SkeletonElement'; | ||
|
||
function SkeletonInterestToPayList() { | ||
const block = ( | ||
<Block> | ||
<div className="text-wrapper"> | ||
<span className="date"> | ||
<SkeletonElement borderRadius={6} /> | ||
</span> | ||
<h1> | ||
<SkeletonElement borderRadius={8} /> | ||
</h1> | ||
<div className="amount-wrapper"> | ||
<SkeletonElement borderRadius={8} /> | ||
</div> | ||
</div> | ||
<DoubleButtonWrapper> | ||
<SkeletonElement borderRadius={12} /> | ||
<SkeletonElement borderRadius={12} /> | ||
</DoubleButtonWrapper> | ||
</Block> | ||
); | ||
|
||
return ( | ||
<Wrapper> | ||
{block} | ||
{block} | ||
</Wrapper> | ||
); | ||
} | ||
|
||
export default SkeletonInterestToPayList; | ||
|
||
const Wrapper = styled.div` | ||
width: 100%; | ||
margin-top: 32px; | ||
`; | ||
|
||
const Block = styled.section` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: space-between; | ||
padding: 16px; | ||
width: 100%; | ||
height: 179px; | ||
border-radius: ${({ theme }) => theme.radius.large}; | ||
background: ${({ theme }) => theme.palette.greyScale.white}; | ||
.date { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
height: 12px; | ||
margin-top: 8px; | ||
} | ||
h1 { | ||
width: 100%; | ||
height: 22px; | ||
margin-top: 4px; | ||
} | ||
.amount-wrapper { | ||
width: 100%; | ||
height: 21px; | ||
margin-top: 24px; | ||
} | ||
& + & { | ||
margin-top: 16px; | ||
} | ||
`; | ||
|
||
const DoubleButtonWrapper = styled.div` | ||
width: 100%; | ||
height: 40px; | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
grid-gap: 8px; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
import SkeletonInterestToPayList from '@components/common/skeletons/SkeletonInterestToPayList'; | ||
import MarginTemplate from '@components/layout/MarginTemplate'; | ||
import styled from 'styled-components'; | ||
|
||
function TestPage() { | ||
return <Wrapper></Wrapper>; | ||
return ( | ||
<Wrapper> | ||
<MarginTemplate> | ||
<SkeletonInterestToPayList /> | ||
</MarginTemplate> | ||
</Wrapper> | ||
); | ||
} | ||
|
||
export default TestPage; | ||
|
||
const Wrapper = styled.div` | ||
height: 1000px; | ||
background: pink; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters