fix: remove unused color application effect in SingleDatePicker component

This commit is contained in:
Astrian Zheng 2025-02-20 15:56:45 +11:00
parent ef0b2e03c3
commit f4df007fa1
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA

View File

@ -124,16 +124,6 @@ const SingleDatePicker: React.FC<SingleDatePickerProps> = ({ value, onSelect, lo
}) })
} , [mainColor, accentColor, reversedColor, hoverColor, borderColor]) } , [mainColor, accentColor, reversedColor, hoverColor, borderColor])
useEffect(() => {
applyColor(uniqueId, {
mainColor: mainColor,
accentColor: accentColor,
reversedColor: reversedColor,
hoverColor: hoverColor,
borderColor: borderColor
})
}, [])
function selectDate(date: Date) { function selectDate(date: Date) {
setSelectedDate(date) setSelectedDate(date)
onSelect?.({ onSelect?.({