diff --git a/src/pages/production/content/summary/index.tsx b/src/pages/production/content/summary/index.tsx index e64f65d..143aae8 100644 --- a/src/pages/production/content/summary/index.tsx +++ b/src/pages/production/content/summary/index.tsx @@ -6,6 +6,7 @@ import { useRecoilState } from 'recoil'; import { selectedWheelState } from '@context/wheel'; import { selectedFontState } from '@context/font'; import { selectedColorState } from '@context/color'; +import { selectedAccessoryState } from '@context/accessory'; function formatCurrency(price: number) { return '+ ' + price.toLocaleString('ko-KR') + '원'; @@ -19,6 +20,7 @@ function Summary() { const [selectedWheel] = useRecoilState(selectedWheelState); const [selectedFont] = useRecoilState(selectedFontState); const [selectedColor] = useRecoilState(selectedColorState); + const [selectedAccessory] = useRecoilState(selectedAccessoryState); if (!pattern.length || !wheel.length || !font.length || !color.length || !accessory.length) { return
Loading...
; @@ -69,6 +71,19 @@ function Summary() { ); + case 3: + return ( + +
+ {accessory[selectedAccessory].name} + {formatCurrency(accessory[selectedAccessory].price)} +
+
+ +

{accessory[selectedAccessory].explanation}

+
+
+ ); default: return
Error...
; }