From c2173165c042c210fe3b9cf45d1be22d7eabaede Mon Sep 17 00:00:00 2001 From: keemsebeen Date: Fri, 27 Sep 2024 17:10:55 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20TimePicker=20colorIndex=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/TimeRangePicker/TimeRangePicker.styled.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/TimeRangePicker/TimeRangePicker.styled.ts b/src/components/common/TimeRangePicker/TimeRangePicker.styled.ts index aa8e33b..7600c33 100644 --- a/src/components/common/TimeRangePicker/TimeRangePicker.styled.ts +++ b/src/components/common/TimeRangePicker/TimeRangePicker.styled.ts @@ -36,7 +36,7 @@ export const TimeBoxSelector = styled.div<{ if (props.intensity > 0) { const baseIndex = 10 - props.totalPeopleNum; const colorIndex = 10 - baseIndex + props.intensity; - return intensityColors[colorIndex]; + return intensityColors[colorIndex - 1]; } if (props.isSelected) return colors.purple; return colors.GY6;