Browse Source

🔧 Refactor code for better readability

🚀 Implement custom header for date picker
 Add two-month view functionality
📅 Update custom day component
🔄 Improve date handling
main
John Doe 1 year ago
parent
commit
fdb45dc0da
  1. 12
      src/components/DatePickerCustomDay.tsx

12
src/components/DatePickerCustomDay.tsx

@ -0,0 +1,12 @@
import React, { FC } from "react";
interface Props {
dayOfMonth: number;
date?: Date | undefined;
}
const DatePickerCustomDay: FC<Props> = ({ dayOfMonth, date }) => {
return <span className="react-datepicker__day_span">{dayOfMonth}</span>;
};
export default DatePickerCustomDay;
Loading…
Cancel
Save