summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/topologies/map/controls/Toolbar.js
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-10-27 11:08:40 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-10-27 11:08:40 +0200
commit18b7ec85dde70ae0bd74d638d573daeaf3e4365f (patch)
tree8077e29bbccda29ccae43c560d92ce1ddfcd1686 /opendc-web/opendc-web-ui/src/components/topologies/map/controls/Toolbar.js
parentfa7fdbb0126ea465130961dc37c4ef2d6feb36e9 (diff)
refactor(web/ui): Drop dependency on FontAwesome
This change removes the explicit dependency on FontAwesome. PatternFly also ships with the FontAwesome icons, so use these icons instead to reduce the footprint of the application.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/topologies/map/controls/Toolbar.js')
-rw-r--r--opendc-web/opendc-web-ui/src/components/topologies/map/controls/Toolbar.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/topologies/map/controls/Toolbar.js b/opendc-web/opendc-web-ui/src/components/topologies/map/controls/Toolbar.js
index 469fd515..e7dc57c3 100644
--- a/opendc-web/opendc-web-ui/src/components/topologies/map/controls/Toolbar.js
+++ b/opendc-web/opendc-web-ui/src/components/topologies/map/controls/Toolbar.js
@@ -2,9 +2,7 @@ import PropTypes from 'prop-types'
import React from 'react'
import { control, toolBar } from './Toolbar.module.scss'
import { Button } from '@patternfly/react-core'
-import { SearchPlusIcon, SearchMinusIcon } from '@patternfly/react-icons'
-import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
-import { faCamera } from '@fortawesome/free-solid-svg-icons'
+import { SearchPlusIcon, SearchMinusIcon, CameraIcon } from '@patternfly/react-icons'
function Toolbar({ onZoom, onExport }) {
return (
@@ -21,7 +19,7 @@ function Toolbar({ onZoom, onExport }) {
onClick={() => onExport()}
className={control}
>
- <FontAwesomeIcon icon={faCamera} />
+ <CameraIcon />
</Button>
</div>
)