-
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.
[theme-market] 내 테마 리스트 api 연동 (#191)
- [theme-market] 내 테마 리스트 api 연동
- Loading branch information
Showing
9 changed files
with
42 additions
and
67 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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
74 changes: 14 additions & 60 deletions
74
apps/theme-market/src/app/_pages/Main/MyTheme/ThemeList/index.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,67 +1,21 @@ | ||
import { Theme } from "@/entities/Theme"; | ||
|
||
import styles from "./index.module.css"; | ||
import { Theme } from "./Theme"; | ||
import { ThemeInfo } from "./ThemeInfo"; | ||
import { themeService } from "@/services/ThemeService"; | ||
|
||
interface Props { | ||
themes: Theme[]; | ||
} | ||
|
||
export const ThemeList = () => { | ||
export const ThemeList = ({ themes }: Props) => { | ||
return ( | ||
<div className={styles.wrapper}> | ||
<Theme title="1" colors={["#1BD0C8"]} /> | ||
<Theme title="2" colors={["#1BD0C8", "#FAC42D"]} /> | ||
<Theme title="3" colors={["#1BD0C8", "#FAC42D", "#E54459"]} /> | ||
<Theme title="4" colors={["#1BD0C8", "#FAC42D", "#A6D930", "#E54459"]} /> | ||
<Theme | ||
title="5" | ||
colors={["#1BD0C8", "#FAC42D", "#A6D930", "#E54459", "#4F48C4"]} | ||
/> | ||
<Theme | ||
title="6" | ||
colors={[ | ||
"#1BD0C8", | ||
"#FAC42D", | ||
"#A6D930", | ||
"#E54459", | ||
"#4F48C4", | ||
"#AF56B3", | ||
]} | ||
/> | ||
<Theme | ||
title="7" | ||
colors={[ | ||
"#1BD0C8", | ||
"#FAC42D", | ||
"#A6D930", | ||
"#E54459", | ||
"#4F48C4", | ||
"#AF56B3", | ||
"#F58D3D", | ||
]} | ||
/> | ||
<Theme | ||
title="8" | ||
colors={[ | ||
"#1BD0C8", | ||
"#FAC42D", | ||
"#A6D930", | ||
"#E54459", | ||
"#4F48C4", | ||
"#AF56B3", | ||
"#F58D3D", | ||
"#1D99E8", | ||
]} | ||
/> | ||
<Theme | ||
title="9" | ||
colors={[ | ||
"#1BD0C8", | ||
"#FAC42D", | ||
"#A6D930", | ||
"#E54459", | ||
"#4F48C4", | ||
"#AF56B3", | ||
"#F58D3D", | ||
"#1D99E8", | ||
"#123456", | ||
]} | ||
/> | ||
{themes.map((theme) => { | ||
const colors = theme.colors.map((color) => color.bg); | ||
|
||
return <ThemeInfo key={theme.id} title={theme.name} colors={colors} />; | ||
})} | ||
</div> | ||
); | ||
}; |
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