Commit 509f22d shnakm
committed
1 parent ff6ac21 commit 509f22d Copy full SHA for 509f22d
File tree 1 file changed +1
-21
lines changed
1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change 1
1
import React , { memo } from 'react' ;
2
- import { useDispatch } from 'react-redux' ;
3
2
import { LoadingOutlined } from '@ant-design/icons' ;
4
3
import Modal from '../components/Modal' ;
5
- import { closeModal , openModal } from '../reducers/modals/actions' ;
6
- import BisectHosting from '../../ui/BisectHosting' ;
7
- import ga from '../utils/analytics' ;
8
-
9
- let timer ;
10
4
11
5
const InstanceStartupAd = ( { instanceName } ) => {
12
- const dispatch = useDispatch ( ) ;
13
-
14
- const openBisectHostingModal = ( ) => {
15
- if ( timer ) {
16
- clearTimeout ( timer ) ;
17
- timer = null ;
18
- }
19
- dispatch ( closeModal ( ) ) ;
20
- setTimeout ( ( ) => {
21
- ga . sendCustomEvent ( 'BHAdViewNavbar' ) ;
22
- dispatch ( openModal ( 'BisectHosting' ) ) ;
23
- } , 225 ) ;
24
- } ;
25
-
26
6
return (
27
7
< Modal
28
8
css = { `
@@ -48,7 +28,7 @@ const InstanceStartupAd = ({ instanceName }) => {
48
28
margin-top: 20px;
49
29
` }
50
30
>
51
- Your instance is starting...
31
+ 🚀 Your instance is starting...
52
32
< LoadingOutlined
53
33
css = { `
54
34
margin-left: 30px;
You can’t perform that action at this time.
0 commit comments