Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
rupato-deriv committed Jul 11, 2024
1 parent 3fd766a commit 15eb1fc
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 14 deletions.
9 changes: 6 additions & 3 deletions src/components/shared_ui/button/button.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import classNames from 'classnames';
import React from 'react';
import ButtonLoading from './button_loading';
import Text from '../text';
import classNames from 'classnames';

import { Icon } from '@/utils/tmp/dummy';

import Text from '../text';

import ButtonLoading from './button_loading';

export type TButtonCommonProps = {
alternate: boolean;
black: boolean;
Expand Down
1 change: 1 addition & 0 deletions src/components/shared_ui/button/button_loading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Loading, { TLoadingProps } from '../loading/loading';

import '../loading/loading.scss';

const ButtonLoading = (
Expand Down
1 change: 1 addition & 0 deletions src/components/shared_ui/button/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Button from './button';

import './button.scss';

export default Button;
1 change: 1 addition & 0 deletions src/components/shared_ui/loading/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Loading from './loading';

import './loading.scss';

export default Loading;
1 change: 1 addition & 0 deletions src/components/shared_ui/loading/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import classNames from 'classnames';

import Text from '../text/text';

export type TLoadingProps = React.HTMLProps<HTMLDivElement> & {
Expand Down
3 changes: 2 additions & 1 deletion src/components/shared_ui/modal/__tests__/modal.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { render, screen, fireEvent } from '@testing-library/react';
import { fireEvent, render, screen } from '@testing-library/react';

import Modal from '../modal';

const modalRoot = document.createElement('div');
Expand Down
1 change: 1 addition & 0 deletions src/components/shared_ui/modal/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Modal from './modal';

import './modal.scss';

export default Modal;
11 changes: 7 additions & 4 deletions src/components/shared_ui/modal/modal.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import React from 'react';
import classNames from 'classnames';
import ReactDOM from 'react-dom';
import { CSSTransition } from 'react-transition-group';
import Body from './modal-body';
import Footer from './modal-footer';
import Text from '../text/text';
import classNames from 'classnames';

import { useOnClickOutside } from '@/hooks/useOnClickOutside';
import { Icon } from '@/utils/tmp/dummy';

import Text from '../text/text';

import Body from './modal-body';
import Footer from './modal-footer';

interface IClickEvent extends MouseEvent {
path?: HTMLElement[];
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/dashboard/cards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import classNames from 'classnames';
import { observer } from 'mobx-react-lite';

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

import { NOTIFICATION_TYPE } from '@/components/bot-notification/bot-notification-utils';
import DesktopWrapper from '@/components/shared_ui/desktop-wrapper';
import Dialog from '@/components/shared_ui/dialog';
import MobileFullPageModal from '@/components/shared_ui/mobile-full-page-modal';
import MobileWrapper from '@/components/shared_ui/mobile-wrapper';
import Text from '@/components/shared_ui/text';
import { DBOT_TABS } from '@/constants/bot-contents';
import { useStore } from '@/hooks/useStore';
import { Icon } from '@/utils/tmp/dummy';
Expand All @@ -18,7 +19,6 @@ import { rudderStackSendQsOpenEventFromDashboard } from '../bot-builder/quick-st

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

type TCardProps = {
has_dashboard_strategies: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/load-bot-preview/google-drive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React from 'react';
import classnames from 'classnames';
import { observer } from 'mobx-react-lite';

import Button from '@/components/shared_ui/button';
import StaticUrl from '@/components/shared_ui/static-url';
import { useStore } from '@/hooks/useStore';
import { Icon, Localize, localize } from '@/utils/tmp/dummy';
import Button from '@/components/shared_ui/button';

const GoogleDrive = observer(() => {
const { ui, google_drive, load_modal } = useStore();
Expand Down
6 changes: 3 additions & 3 deletions src/pages/dashboard/load-bot-preview/save-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import { observer } from 'mobx-react-lite';

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

import Button from '@/components/shared_ui/button';
import Input from '@/components/shared_ui/input';
import MobileFullPageModal from '@/components/shared_ui/mobile-full-page-modal';
import Modal from '@/components/shared_ui/modal';
import RadioGroup from '@/components/shared_ui/radio-group';
import ThemedScrollbars from '@/components/shared_ui/themed-scrollbars';
import { config, save_types } from '@/external/bot-skeleton';
import { useStore } from '@/hooks/useStore';
import { Icon, localize } from '@/utils/tmp/dummy';

import IconRadio from './icon-radio';
import Modal from '@/components/shared_ui/modal';
import Button from '@/components/shared_ui/button';
import Input from '@/components/shared_ui/input';

type TSaveModalForm = {
bot_name: string;
Expand Down

0 comments on commit 15eb1fc

Please sign in to comment.