Skip to content

Commit

Permalink
v0.0.9 - Fix Dayjs Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andyclarkemedia committed Sep 8, 2022
1 parent 778e68d commit 64a7139
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/urbanbigdatacentre/data-blocks.git"
},
"version": "0.0.8",
"version": "0.0.9",
"description": "React based UI Component Library for big data handling, interactions, presentation and visualisation.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
4 changes: 2 additions & 2 deletions src/components/DateRangePicker/DateRangePicker.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from 'react';
import {TextField, Box, styled, Typography, createTheme, ThemeProvider, Stack} from "@mui/material";
import {DatePicker, LocalizationProvider} from "@mui/x-date-pickers";
import dayjs from "dayjs";
import * as customParseFormat from 'dayjs/esm/plugin/customParseFormat';
import { default as dayjs } from 'dayjs';
import {AdapterDayjs} from "@mui/x-date-pickers/AdapterDayjs";
import {useEffect} from "react";

Expand All @@ -26,6 +25,7 @@ export interface DateRangePickerProps {
const DateRangePicker = (props: DateRangePickerProps) => {

// Declare Component States
const day = dayjs()
const [startDate, setStartDate] = React.useState<any | null >(dayjs(JSON.stringify(dayjs().year()) + "-01-01"))
const [endDate, setEndDate] = React.useState<any | null >(dayjs())

Expand Down

0 comments on commit 64a7139

Please sign in to comment.