diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/components/picker/DatePicker.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/components/picker/DatePicker.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/picker/DatePicker.tsx b/packages/merchant-backoffice-ui/src/components/picker/DatePicker.tsx index d637958cb..6dc1fadd6 100644 --- a/packages/merchant-backoffice-ui/src/components/picker/DatePicker.tsx +++ b/packages/merchant-backoffice-ui/src/components/picker/DatePicker.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { h, Component } from "preact"; +import { Component, h } from "preact"; interface Props { closeFunction?: () => void; @@ -64,7 +64,7 @@ export class DatePicker extends Component<Props, State> { getDaysByMonth(month: number, year: number) { const calendar = []; - const date = new Date(year, month, 1); // month to display + // const date = new Date(year, month, 1); // month to display const firstDay = new Date(year, month, 1).getDay(); // first weekday of month const lastDate = new Date(year, month + 1, 0).getDate(); // last date of month |