diff --git a/src/components/CustomBottomSheet/DatePickerBottomSheet.tsx b/src/components/CustomBottomSheet/DatePickerBottomSheet.tsx index c478c1a..c0a350d 100644 --- a/src/components/CustomBottomSheet/DatePickerBottomSheet.tsx +++ b/src/components/CustomBottomSheet/DatePickerBottomSheet.tsx @@ -47,13 +47,17 @@ export default function DatePickerBottomSheet({ label: (i + 1).toString(), })); - const years = Array.from({ length: 21 }, (_, i) => { - const year = new Date().getFullYear() - 10 + i; - return { - value: year.toString(), - label: year.toString(), - }; - }); + const currentYear = new Date().getFullYear(); + const years = Array.from( + { length: currentYear - 10 - 1900 + 1 }, + (_, i) => { + const year = 1900 + i; + return { + value: year.toString(), + label: year.toString(), + }; + }, + ); return { month: months, @@ -145,10 +149,12 @@ export default function DatePickerBottomSheet({ style={{ position: "relative", display: "flex", - backgroundColor: "#ffffff", + backgroundColor: "var(--secondary-background)", overflow: "hidden", width: "100%", height: 250, + border: "1px solid var(--border)", + borderRadius: "8px", }} aria-selected={false} > @@ -156,8 +162,8 @@ export default function DatePickerBottomSheet({ name="month" style={{ flex: 1, - borderRight: "1px solid #e5e7eb", - backgroundColor: "#ffffff", + borderRight: "1px solid var(--border)", + backgroundColor: "var(--secondary-background)", }} > {pickerOptions.month.map((option) => ( @@ -166,16 +172,22 @@ export default function DatePickerBottomSheet({