diff options
author | André Oliveira <37463445+SpecialAro@users.noreply.github.com> | 2024-05-04 06:21:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-04 10:51:46 +0530 |
commit | 3274625fa309362073a7808490e5d0a3e34b2df6 (patch) | |
tree | a0b82ba9507eed6945d076b27f3e48aeea8aeb55 /src/containers/auth | |
parent | 6.7.4-nightly.3 [skip ci] (diff) | |
download | ferdium-app-3274625fa309362073a7808490e5d0a3e34b2df6.tar.gz ferdium-app-3274625fa309362073a7808490e5d0a3e34b2df6.tar.zst ferdium-app-3274625fa309362073a7808490e5d0a3e34b2df6.zip |
chore: change icons to reduce bundle (#1740)
* Made the sleep in millis more explicit
Diffstat (limited to 'src/containers/auth')
-rw-r--r-- | src/containers/auth/SetupAssistantScreen.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/containers/auth/SetupAssistantScreen.tsx b/src/containers/auth/SetupAssistantScreen.tsx index d15b4e6e1..b73b5705d 100644 --- a/src/containers/auth/SetupAssistantScreen.tsx +++ b/src/containers/auth/SetupAssistantScreen.tsx | |||
@@ -1,4 +1,5 @@ | |||
1 | import { inject, observer } from 'mobx-react'; | 1 | import { inject, observer } from 'mobx-react'; |
2 | import ms from 'ms'; | ||
2 | import { Component, type ReactElement } from 'react'; | 3 | import { Component, type ReactElement } from 'react'; |
3 | import type { StoresProps } from '../../@types/ferdium-components.types'; | 4 | import type { StoresProps } from '../../@types/ferdium-components.types'; |
4 | import type { ILegacyServices } from '../../@types/legacy-types'; | 5 | import type { ILegacyServices } from '../../@types/legacy-types'; |
@@ -83,11 +84,11 @@ class SetupAssistantScreen extends Component<IProps, IState> { | |||
83 | }); | 84 | }); |
84 | 85 | ||
85 | // eslint-disable-next-line no-await-in-loop | 86 | // eslint-disable-next-line no-await-in-loop |
86 | await sleep(100); | 87 | await sleep(ms('100ms')); |
87 | } | 88 | } |
88 | 89 | ||
89 | this.setState({ isSettingUpServices: false }); | 90 | this.setState({ isSettingUpServices: false }); |
90 | await sleep(100); | 91 | await sleep(ms('100ms')); |
91 | router.push('/'); | 92 | router.push('/'); |
92 | } | 93 | } |
93 | 94 | ||