-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat(ui): Text 컴포넌트 tag prop 추가
- Loading branch information
Showing
9 changed files
with
48 additions
and
60 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: 7 additions & 7 deletions
14
apps/user/src/components/result/FirstResultTable/FirstResultTable.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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
import { useFirstResultQuery } from '@/services/result/queries'; | ||
import { Column } from '@maru/ui'; | ||
import { flex } from '@maru/utils'; | ||
import styled from 'styled-components'; | ||
import ResultTableFooter from '../ResultTableFooter/ResultTableFooter'; | ||
import ResultTableHeader from '../ResultTableHeader/ResultTableHeader'; | ||
import ResultTableItem from '../ResultTableItem/ResultTableItem'; | ||
import styled from 'styled-components'; | ||
import { useFirstResultQuery } from '@/services/result/queries'; | ||
|
||
const FirstResultTable = () => { | ||
const { data: firstResultData } = useFirstResultQuery(); | ||
|
||
return firstResultData ? ( | ||
<StyledFirstResultTable is합격={firstResultData.passed}> | ||
<StyledFirstResultTable isPassed={firstResultData.passed}> | ||
<Column gap={12} width={816}> | ||
<ResultTableHeader /> | ||
<ResultTableItem | ||
id={firstResultData.id} | ||
name={firstResultData.name} | ||
type={firstResultData.type} | ||
is합격={firstResultData.passed} | ||
isPassed={firstResultData.passed} | ||
/> | ||
</Column> | ||
<ResultTableFooter option="FIRST" is합격={firstResultData.passed} /> | ||
<ResultTableFooter option="FIRST" isPassed={firstResultData.passed} /> | ||
</StyledFirstResultTable> | ||
) : null; | ||
}; | ||
|
||
export default FirstResultTable; | ||
|
||
const StyledFirstResultTable = styled.div<{ is합격: boolean }>` | ||
const StyledFirstResultTable = styled.div<{ isPassed: boolean }>` | ||
${flex({ flexDirection: 'column', alignItems: 'center' })}; | ||
gap: ${(props) => (props.is합격 ? '64px' : '120px')}; | ||
gap: ${(props) => (props.isPassed ? '64px' : '120px')}; | ||
`; |
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 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