Browse Source

:fire: 无用的引用

visuddhinanda 3 years ago
parent
commit
4d772c9f83
1 changed files with 1 additions and 2 deletions
  1. 1 2
      dashboard/src/components/general/TimeShow.tsx

+ 1 - 2
dashboard/src/components/general/TimeShow.tsx

@@ -1,7 +1,7 @@
 import { Space, Tooltip } from "antd";
 import { Space, Tooltip } from "antd";
 import { useIntl } from "react-intl";
 import { useIntl } from "react-intl";
 import { FieldTimeOutlined } from "@ant-design/icons";
 import { FieldTimeOutlined } from "@ant-design/icons";
-import { useEffect, useRef, useState } from "react";
+import { useEffect, useState } from "react";
 
 
 interface IWidgetTimeShow {
 interface IWidgetTimeShow {
   showIcon?: boolean;
   showIcon?: boolean;
@@ -18,7 +18,6 @@ const Widget = ({
 }: IWidgetTimeShow) => {
 }: IWidgetTimeShow) => {
   const intl = useIntl(); //i18n
   const intl = useIntl(); //i18n
   const [passTime, setPassTime] = useState<string>();
   const [passTime, setPassTime] = useState<string>();
-  console.log("time", time);
   const updateTime = () => {
   const updateTime = () => {
     console.log("timer", time);
     console.log("timer", time);
     if (typeof time !== "undefined" && time !== "") {
     if (typeof time !== "undefined" && time !== "") {