We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f620dea commit 484f28aCopy full SHA for 484f28a
1 file changed
pages/dropzone/[id]/index.tsx
@@ -25,6 +25,8 @@ import { errorNotification } from 'helpers/notification';
25
import Loader from 'components/Loader';
26
import Head from 'next/head';
27
28
+const now = new Date();
29
+
30
const DropzoneDetails: NextPage<Props> = ({ details, location }) => {
31
const Router = useRouter();
32
const { query } = Router;
@@ -251,7 +253,7 @@ const DropzoneDetails: NextPage<Props> = ({ details, location }) => {
251
253
format="LL"
252
254
dayPickerProps={{
255
selectedDays: [from, { from, to }],
- disabledDays: { after: to },
256
+ disabledDays: { before: now, after: to },
257
toMonth: to,
258
modifiers: { start: from, end: to },
259
numberOfMonths: 2,
0 commit comments