File tree 11 files changed +26
-14
lines changed
11 files changed +26
-14
lines changed Original file line number Diff line number Diff line change 1
- import classNames from 'classnames' ;
2
1
import React from 'react' ;
3
- import ButtonLoading from './button_loading ' ;
4
- import Text from '../text' ;
2
+ import classNames from 'classnames ' ;
3
+
5
4
import { Icon } from '@/utils/tmp/dummy' ;
6
5
6
+ import Text from '../text' ;
7
+
8
+ import ButtonLoading from './button_loading' ;
9
+
7
10
export type TButtonCommonProps = {
8
11
alternate : boolean ;
9
12
black : boolean ;
Original file line number Diff line number Diff line change 1
1
import Loading , { TLoadingProps } from '../loading/loading' ;
2
+
2
3
import '../loading/loading.scss' ;
3
4
4
5
const ButtonLoading = (
Original file line number Diff line number Diff line change 1
1
import Button from './button' ;
2
+
2
3
import './button.scss' ;
3
4
4
5
export default Button ;
Original file line number Diff line number Diff line change 1
1
import Loading from './loading' ;
2
+
2
3
import './loading.scss' ;
3
4
4
5
export default Loading ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import classNames from 'classnames' ;
3
+
3
4
import Text from '../text/text' ;
4
5
5
6
export type TLoadingProps = React . HTMLProps < HTMLDivElement > & {
Original file line number Diff line number Diff line change 1
- import { render , screen , fireEvent } from '@testing-library/react' ;
1
+ import { fireEvent , render , screen } from '@testing-library/react' ;
2
+
2
3
import Modal from '../modal' ;
3
4
4
5
const modalRoot = document . createElement ( 'div' ) ;
Original file line number Diff line number Diff line change 1
1
import Modal from './modal' ;
2
+
2
3
import './modal.scss' ;
3
4
4
5
export default Modal ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import classNames from 'classnames' ;
3
2
import ReactDOM from 'react-dom' ;
4
3
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
+
8
6
import { useOnClickOutside } from '@/hooks/useOnClickOutside' ;
9
7
import { Icon } from '@/utils/tmp/dummy' ;
10
8
9
+ import Text from '../text/text' ;
10
+
11
+ import Body from './modal-body' ;
12
+ import Footer from './modal-footer' ;
13
+
11
14
interface IClickEvent extends MouseEvent {
12
15
path ?: HTMLElement [ ] ;
13
16
}
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ import classNames from 'classnames';
4
4
import { observer } from 'mobx-react-lite' ;
5
5
6
6
import { localize } from '@deriv-com/translations' ;
7
- import Dialog from '@/components/shared_ui/dialog' ;
8
7
9
8
import { NOTIFICATION_TYPE } from '@/components/bot-notification/bot-notification-utils' ;
10
9
import DesktopWrapper from '@/components/shared_ui/desktop-wrapper' ;
10
+ import Dialog from '@/components/shared_ui/dialog' ;
11
11
import MobileFullPageModal from '@/components/shared_ui/mobile-full-page-modal' ;
12
12
import MobileWrapper from '@/components/shared_ui/mobile-wrapper' ;
13
+ import Text from '@/components/shared_ui/text' ;
13
14
import { DBOT_TABS } from '@/constants/bot-contents' ;
14
15
import { useStore } from '@/hooks/useStore' ;
15
16
import { Icon } from '@/utils/tmp/dummy' ;
@@ -18,7 +19,6 @@ import { rudderStackSendQsOpenEventFromDashboard } from '../bot-builder/quick-st
18
19
19
20
import DashboardBotList from './load-bot-preview/dashboard-bot-list' ;
20
21
import GoogleDrive from './load-bot-preview/google-drive' ;
21
- import Text from '@/components/shared_ui/text' ;
22
22
23
23
type TCardProps = {
24
24
has_dashboard_strategies : boolean ;
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ import React from 'react';
2
2
import classnames from 'classnames' ;
3
3
import { observer } from 'mobx-react-lite' ;
4
4
5
+ import Button from '@/components/shared_ui/button' ;
5
6
import StaticUrl from '@/components/shared_ui/static-url' ;
6
7
import { useStore } from '@/hooks/useStore' ;
7
8
import { Icon , Localize , localize } from '@/utils/tmp/dummy' ;
8
- import Button from '@/components/shared_ui/button' ;
9
9
10
10
const GoogleDrive = observer ( ( ) => {
11
11
const { ui, google_drive, load_modal } = useStore ( ) ;
Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ import { observer } from 'mobx-react-lite';
5
5
6
6
import { Text } from '@deriv-com/ui' ;
7
7
8
+ import Button from '@/components/shared_ui/button' ;
9
+ import Input from '@/components/shared_ui/input' ;
8
10
import MobileFullPageModal from '@/components/shared_ui/mobile-full-page-modal' ;
11
+ import Modal from '@/components/shared_ui/modal' ;
9
12
import RadioGroup from '@/components/shared_ui/radio-group' ;
10
13
import ThemedScrollbars from '@/components/shared_ui/themed-scrollbars' ;
11
14
import { config , save_types } from '@/external/bot-skeleton' ;
12
15
import { useStore } from '@/hooks/useStore' ;
13
16
import { Icon , localize } from '@/utils/tmp/dummy' ;
14
17
15
18
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' ;
19
19
20
20
type TSaveModalForm = {
21
21
bot_name : string ;
You can’t perform that action at this time.
0 commit comments