Skip to content

Commit

Permalink
v0.0.12 - Fix Dayjs Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andyclarkemedia committed Sep 8, 2022
1 parent c50fc0c commit b4b1496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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.11",
"version": "0.0.12",
"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
2 changes: 1 addition & 1 deletion src/components/DateRangePicker/DateRangePicker.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +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 {AdapterDayjs} from "@mui/x-date-pickers/AdapterDayjs";
import {useEffect} from "react";

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

// Declare Component States
const dayjs = require('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 b4b1496

Please sign in to comment.