Skip to content

Commit

Permalink
removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducica committed Feb 29, 2024
1 parent 99af27c commit d503474
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const DatePickerHeader = ({
<div>
<span>{i18next.t("Select: ")}</span>
<Dropdown
className="datepicker-dropdown"
options={edtfDateFormatOptions}
onChange={(e, data) => setDateEdtfFormat(data.value)}
value={dateEdtfFormat}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import { useState, useEffect } from "react";
import { registerLocale } from "react-datepicker";

export const useInitialDateEdtfFormat = (fieldValue) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React, { useState } from "react";
import _padStart from "lodash/padStart";
import { i18next } from "@translations/oarepo_ui/i18next";

Expand Down Expand Up @@ -32,7 +31,6 @@ export const deserializeDate = (edtfDateString) => {
if (edtfDateString) {
try {
const dateObject = new Date(edtfDateString);
console.log(dateObject);
// Check if the dateObject is valid
if (isNaN(dateObject.getTime())) {
throw new Error("Invalid date string");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@
}
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.ui.dropdown {
&.datepicker-dropdown {
.menu {
box-shadow: none;
}
}
}

0 comments on commit d503474

Please sign in to comment.