(BACKGROUND_COLOR_READ[selectedColorID]);
const handleClickPalette = (palette: string) => {
setSelectedPalette(palette as BACKGROUND_COLOR_PALETTE_TYPE);
};
- const handleClickColor = (colorID: string) => {
+ const handleClickColor = (colorID: BackgroundColorKeys) => {
setSelectedColorID(colorID);
setValue('backgroundPalette', selectedPalette);
setValue('backgroundColor', colorID);
@@ -194,6 +197,7 @@ export default function StepThree({ onBeforeClick, onNextClick, type, isSubmitti
{palette}
))}
+
{/** end-tapContainer(팔레트) */}
@@ -203,7 +207,8 @@ export default function StepThree({ onBeforeClick, onNextClick, type, isSubmitti
className={styles.colorChip}
style={{ backgroundColor: hex }}
onClick={() => {
- handleClickColor(colorID);
+ handleClickColor(colorID as BackgroundColorKeys);
+ setSelectedColorHex(hex);
}}
>
{selectedColorID === colorID && }