refactor: remove console log from SingleDatePicker component
This commit is contained in:
parent
2cadaae650
commit
a7e7cbe3fa
|
@ -32,7 +32,6 @@ export default ({ value }: Props) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!value) return
|
if (!value) return
|
||||||
const date = value instanceof Date ? value : new Date(value.year, value.month - 1, value.day)
|
const date = value instanceof Date ? value : new Date(value.year, value.month - 1, value.day)
|
||||||
console.log(date)
|
|
||||||
setSelectedDate(date)
|
setSelectedDate(date)
|
||||||
setCurrentMonth(date.getMonth())
|
setCurrentMonth(date.getMonth())
|
||||||
setCurrentYear(date.getFullYear())
|
setCurrentYear(date.getFullYear())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user