diff options
author | 2021-10-28 13:53:22 +0200 | |
---|---|---|
committer | 2021-10-28 13:53:22 +0200 | |
commit | 59d665af9d4c2dc505e5d5267b02b1df96e90a7d (patch) | |
tree | 7ae3acd32a0c94a2b157bfebdee3d479ffc6f5d1 /src/components/layout/AppLayout.js | |
parent | New Crowdin updates (#2154) [skip ci] (diff) | |
download | ferdium-app-59d665af9d4c2dc505e5d5267b02b1df96e90a7d.tar.gz ferdium-app-59d665af9d4c2dc505e5d5267b02b1df96e90a7d.tar.zst ferdium-app-59d665af9d4c2dc505e5d5267b02b1df96e90a7d.zip |
chore: remove @mdi/font in favor of using icons with @mdi/js directly (#2158)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/components/layout/AppLayout.js')
-rw-r--r-- | src/components/layout/AppLayout.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/layout/AppLayout.js b/src/components/layout/AppLayout.js index af27e8854..a31419a5e 100644 --- a/src/components/layout/AppLayout.js +++ b/src/components/layout/AppLayout.js | |||
@@ -6,6 +6,7 @@ import { TitleBar } from 'electron-react-titlebar/renderer'; | |||
6 | import injectSheet from 'react-jss'; | 6 | import injectSheet from 'react-jss'; |
7 | import { ipcRenderer } from 'electron'; | 7 | import { ipcRenderer } from 'electron'; |
8 | 8 | ||
9 | import { mdiFlash, mdiPowerPlug } from '@mdi/js'; | ||
9 | import InfoBar from '../ui/InfoBar'; | 10 | import InfoBar from '../ui/InfoBar'; |
10 | import { Component as BasicAuth } from '../../features/basicAuth'; | 11 | import { Component as BasicAuth } from '../../features/basicAuth'; |
11 | import { Component as QuickSwitch } from '../../features/quickSwitch'; | 12 | import { Component as QuickSwitch } from '../../features/quickSwitch'; |
@@ -20,6 +21,7 @@ import WorkspaceSwitchingIndicator from '../../features/workspaces/components/Wo | |||
20 | import { workspaceStore } from '../../features/workspaces'; | 21 | import { workspaceStore } from '../../features/workspaces'; |
21 | import AppUpdateInfoBar from '../AppUpdateInfoBar'; | 22 | import AppUpdateInfoBar from '../AppUpdateInfoBar'; |
22 | import Todos from '../../features/todos/containers/TodosScreen'; | 23 | import Todos from '../../features/todos/containers/TodosScreen'; |
24 | import { Icon } from '../ui/icon'; | ||
23 | 25 | ||
24 | const messages = defineMessages({ | 26 | const messages = defineMessages({ |
25 | servicesUpdated: { | 27 | servicesUpdated: { |
@@ -151,7 +153,7 @@ class AppLayout extends Component { | |||
151 | sticky | 153 | sticky |
152 | onClick={retryRequiredRequests} | 154 | onClick={retryRequiredRequests} |
153 | > | 155 | > |
154 | <span className="mdi mdi-flash" /> | 156 | <Icon icon={mdiFlash} /> |
155 | {intl.formatMessage(messages.requiredRequestsFailed)} | 157 | {intl.formatMessage(messages.requiredRequestsFailed)} |
156 | </InfoBar> | 158 | </InfoBar> |
157 | )} | 159 | )} |
@@ -163,7 +165,7 @@ class AppLayout extends Component { | |||
163 | sticky | 165 | sticky |
164 | onClick={retryRequiredRequests} | 166 | onClick={retryRequiredRequests} |
165 | > | 167 | > |
166 | <span className="mdi mdi-flash" /> | 168 | <Icon icon={mdiFlash} /> |
167 | {intl.formatMessage(messages.authRequestFailed)} | 169 | {intl.formatMessage(messages.authRequestFailed)} |
168 | </InfoBar> | 170 | </InfoBar> |
169 | )} | 171 | )} |
@@ -179,7 +181,7 @@ class AppLayout extends Component { | |||
179 | }); | 181 | }); |
180 | }} | 182 | }} |
181 | > | 183 | > |
182 | <span className="mdi mdi-power-plug" /> | 184 | <Icon icon={mdiPowerPlug} /> |
183 | {intl.formatMessage(messages.servicesUpdated)} | 185 | {intl.formatMessage(messages.servicesUpdated)} |
184 | </InfoBar> | 186 | </InfoBar> |
185 | )} | 187 | )} |