From eb09a1123a7bd00a456fd6faa9639a1eae8e9cc5 Mon Sep 17 00:00:00 2001 From: aboveyunhai <35160613+aboveyunhai@users.noreply.github.com> Date: Mon, 13 Nov 2023 19:16:40 -0500 Subject: [PATCH] add reset example --- example/index.tsx | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/example/index.tsx b/example/index.tsx index 4281903..ac7eccd 100644 --- a/example/index.tsx +++ b/example/index.tsx @@ -43,7 +43,7 @@ const offsets: FirstDayOfWeek[] = [0, 1, 2, 3, 4, 5, 6]; const App = () => { const { colorMode, toggleColorMode } = useColorMode(); const demoDate = new Date(); - const [date, setDate] = useState(demoDate); + const [date, setDate] = useState(demoDate); const [selectedDates, setSelectedDates] = useState([ new Date(), new Date(), @@ -138,12 +138,20 @@ const App = () => {
- + closeOnSelect: setSingleCheck(e.currentTarget.checked)} /> + { />
- + closeOnSelect: setRangeCheck(e.currentTarget.checked)} /> + { padding: '5px', }, dividerProps: { - display: "none", + display: 'none', }, }, weekdayLabelProps: {