diff options
author | 2024-02-11 09:50:32 +0530 | |
---|---|---|
committer | 2024-02-11 04:39:55 +0000 | |
commit | beb1f1c28adc9872b179a2169e4f8d34adf125c7 (patch) | |
tree | 86dbd13e3ef6365d0e28fe4d23de7c6b7828f692 /src/features/workspaces | |
parent | remove unused '@types/react-loader' pkg (diff) | |
download | ferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.tar.gz ferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.tar.zst ferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.zip |
minor refactoring to remove duplication with a constant
Diffstat (limited to 'src/features/workspaces')
-rw-r--r-- | src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx b/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx index 0fce811e5..19dd9037d 100644 --- a/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx +++ b/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx | |||
@@ -5,6 +5,7 @@ import classnames from 'classnames'; | |||
5 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | 5 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; |
6 | import Loader from '../../../components/ui/loader'; | 6 | import Loader from '../../../components/ui/loader'; |
7 | import { workspaceStore } from '../index'; | 7 | import { workspaceStore } from '../index'; |
8 | import { DEFAULT_LOADER_COLOR } from '../../../config'; | ||
8 | 9 | ||
9 | const messages = defineMessages({ | 10 | const messages = defineMessages({ |
10 | switchingTo: { | 11 | switchingTo: { |
@@ -70,7 +71,7 @@ class WorkspaceSwitchingIndicator extends Component<IProps> { | |||
70 | return ( | 71 | return ( |
71 | <div className={classnames([classes.wrapper])}> | 72 | <div className={classnames([classes.wrapper])}> |
72 | <div className={classes.component}> | 73 | <div className={classes.component}> |
73 | <Loader className={classes.spinner} color="#FFFFFF" /> | 74 | <Loader className={classes.spinner} color={DEFAULT_LOADER_COLOR} /> |
74 | <p className={classes.message}> | 75 | <p className={classes.message}> |
75 | {`${intl.formatMessage(messages.switchingTo)} ${nextWorkspaceName}`} | 76 | {`${intl.formatMessage(messages.switchingTo)} ${nextWorkspaceName}`} |
76 | </p> | 77 | </p> |