From 94bd51fa71ee91fc65811e5482758f0377e9f803 Mon Sep 17 00:00:00 2001 From: Rupato Date: Tue, 2 Jul 2024 12:54:08 +0800 Subject: [PATCH] fix: eslint --- package.json | 4 ++-- src/components/shared_ui/dialog/dialog.tsx | 8 ++++---- src/external/bot-skeleton/utils/date-time-helper.js | 3 +-- .../dashboard/common/delete-dialog/delete-dialog.tsx | 10 ++++------ src/pages/dashboard/common/info-panel.tsx | 2 +- src/pages/main/main.tsx | 8 ++++---- 6 files changed, 16 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 57fdb871..f39b2a97 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "scripts": { "start": "vite", - "start:dev": "vite-live-preview --reload --port=8444", + "start:dev": "vite-live-preview --reload --port=8443", "build": "vite build", "preview": "vite preview", "test:lint": "prettier --log-level silent --write . && eslint \"./src/**/*.?(js|jsx|ts|tsx)\"", @@ -119,4 +119,4 @@ "vite-tsconfig-paths": "^4.3.2", "vitest": "^1.6.0" } -} +} \ No newline at end of file diff --git a/src/components/shared_ui/dialog/dialog.tsx b/src/components/shared_ui/dialog/dialog.tsx index 200a1cb6..0c0a4ef8 100644 --- a/src/components/shared_ui/dialog/dialog.tsx +++ b/src/components/shared_ui/dialog/dialog.tsx @@ -1,12 +1,9 @@ +/* eslint-disable simple-import-sort/imports */ import React from 'react'; import ReactDOM from 'react-dom'; import { CSSTransition } from 'react-transition-group'; import classNames from 'classnames'; - -// import Icon from '../icon/icon'; -// import Button from '../button/button'; import Text from '../text'; -// import { useOnClickOutside } from '../../hooks'; type TDialog = { cancel_button_text?: string; @@ -149,6 +146,7 @@ const Dialog = ({ {has_close_icon && (
+ {/* TODO: need to fix this component by importing the Icon in shared UI */} {/* */}
)} @@ -163,6 +161,7 @@ const Dialog = ({ )}
{!!onCancel && ( + //TODO: need to fix this component by importing the button in shared UI //