Skip to content

Commit 15eb1fc

Browse files
committed
fix: eslint
1 parent 3fd766a commit 15eb1fc

File tree

11 files changed

+26
-14
lines changed

11 files changed

+26
-14
lines changed

src/components/shared_ui/button/button.tsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
import classNames from 'classnames';
21
import React from 'react';
3-
import ButtonLoading from './button_loading';
4-
import Text from '../text';
2+
import classNames from 'classnames';
3+
54
import { Icon } from '@/utils/tmp/dummy';
65

6+
import Text from '../text';
7+
8+
import ButtonLoading from './button_loading';
9+
710
export type TButtonCommonProps = {
811
alternate: boolean;
912
black: boolean;

src/components/shared_ui/button/button_loading.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Loading, { TLoadingProps } from '../loading/loading';
2+
23
import '../loading/loading.scss';
34

45
const ButtonLoading = (
+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Button from './button';
2+
23
import './button.scss';
34

45
export default Button;
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Loading from './loading';
2+
23
import './loading.scss';
34

45
export default Loading;

src/components/shared_ui/loading/loading.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import classNames from 'classnames';
3+
34
import Text from '../text/text';
45

56
export type TLoadingProps = React.HTMLProps<HTMLDivElement> & {

src/components/shared_ui/modal/__tests__/modal.spec.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { render, screen, fireEvent } from '@testing-library/react';
1+
import { fireEvent, render, screen } from '@testing-library/react';
2+
23
import Modal from '../modal';
34

45
const modalRoot = document.createElement('div');
+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Modal from './modal';
2+
23
import './modal.scss';
34

45
export default Modal;

src/components/shared_ui/modal/modal.tsx

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import React from 'react';
2-
import classNames from 'classnames';
32
import ReactDOM from 'react-dom';
43
import { CSSTransition } from 'react-transition-group';
5-
import Body from './modal-body';
6-
import Footer from './modal-footer';
7-
import Text from '../text/text';
4+
import classNames from 'classnames';
5+
86
import { useOnClickOutside } from '@/hooks/useOnClickOutside';
97
import { Icon } from '@/utils/tmp/dummy';
108

9+
import Text from '../text/text';
10+
11+
import Body from './modal-body';
12+
import Footer from './modal-footer';
13+
1114
interface IClickEvent extends MouseEvent {
1215
path?: HTMLElement[];
1316
}

src/pages/dashboard/cards.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import classNames from 'classnames';
44
import { observer } from 'mobx-react-lite';
55

66
import { localize } from '@deriv-com/translations';
7-
import Dialog from '@/components/shared_ui/dialog';
87

98
import { NOTIFICATION_TYPE } from '@/components/bot-notification/bot-notification-utils';
109
import DesktopWrapper from '@/components/shared_ui/desktop-wrapper';
10+
import Dialog from '@/components/shared_ui/dialog';
1111
import MobileFullPageModal from '@/components/shared_ui/mobile-full-page-modal';
1212
import MobileWrapper from '@/components/shared_ui/mobile-wrapper';
13+
import Text from '@/components/shared_ui/text';
1314
import { DBOT_TABS } from '@/constants/bot-contents';
1415
import { useStore } from '@/hooks/useStore';
1516
import { Icon } from '@/utils/tmp/dummy';
@@ -18,7 +19,6 @@ import { rudderStackSendQsOpenEventFromDashboard } from '../bot-builder/quick-st
1819

1920
import DashboardBotList from './load-bot-preview/dashboard-bot-list';
2021
import GoogleDrive from './load-bot-preview/google-drive';
21-
import Text from '@/components/shared_ui/text';
2222

2323
type TCardProps = {
2424
has_dashboard_strategies: boolean;

src/pages/dashboard/load-bot-preview/google-drive.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import React from 'react';
22
import classnames from 'classnames';
33
import { observer } from 'mobx-react-lite';
44

5+
import Button from '@/components/shared_ui/button';
56
import StaticUrl from '@/components/shared_ui/static-url';
67
import { useStore } from '@/hooks/useStore';
78
import { Icon, Localize, localize } from '@/utils/tmp/dummy';
8-
import Button from '@/components/shared_ui/button';
99

1010
const GoogleDrive = observer(() => {
1111
const { ui, google_drive, load_modal } = useStore();

src/pages/dashboard/load-bot-preview/save-modal.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import { observer } from 'mobx-react-lite';
55

66
import { Text } from '@deriv-com/ui';
77

8+
import Button from '@/components/shared_ui/button';
9+
import Input from '@/components/shared_ui/input';
810
import MobileFullPageModal from '@/components/shared_ui/mobile-full-page-modal';
11+
import Modal from '@/components/shared_ui/modal';
912
import RadioGroup from '@/components/shared_ui/radio-group';
1013
import ThemedScrollbars from '@/components/shared_ui/themed-scrollbars';
1114
import { config, save_types } from '@/external/bot-skeleton';
1215
import { useStore } from '@/hooks/useStore';
1316
import { Icon, localize } from '@/utils/tmp/dummy';
1417

1518
import IconRadio from './icon-radio';
16-
import Modal from '@/components/shared_ui/modal';
17-
import Button from '@/components/shared_ui/button';
18-
import Input from '@/components/shared_ui/input';
1919

2020
type TSaveModalForm = {
2121
bot_name: string;

0 commit comments

Comments
 (0)