Skip to content

Commit b163c91

Browse files
committed
Fix types
1 parent cd8ca77 commit b163c91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Datepicker.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Period, DatepickerType, ColorKeys } from "../types";
1313

1414
import { Arrow, VerticalDash } from "./utils";
1515

16-
const Datepicker: React.FC<DatepickerType> = ({
16+
const Datepicker = ({
1717
primaryColor = "blue",
1818
value = null,
1919
onChange,
@@ -22,7 +22,7 @@ const Datepicker: React.FC<DatepickerType> = ({
2222
showShortcuts = false,
2323
configs = undefined,
2424
asSingle = false,
25-
placeholder = null,
25+
placeholder = undefined,
2626
separator = "~",
2727
startFrom = null,
2828
i18n = LANGUAGE,
@@ -44,7 +44,7 @@ const Datepicker: React.FC<DatepickerType> = ({
4444
classNames = undefined,
4545
popoverDirection = undefined,
4646
inline = false
47-
}) => {
47+
}: DatepickerType) => {
4848
// Ref
4949
const containerRef = useRef<HTMLDivElement | null>(null);
5050
const calendarContainerRef = useRef<HTMLDivElement | null>(null);

0 commit comments

Comments
 (0)