Skip to content

Commit 5f6a9ee

Browse files
committed
Use react-icons in src/component/Header.tsx
Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent 7198c0c commit 5f6a9ee

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/components/Header.tsx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ import { HealthStatus, fetchHealthStatus } from "../slices/healthSlice";
2424
import { UserInfoState } from "../slices/userInfoSlice";
2525
import { Tooltip } from "./shared/Tooltip";
2626
import { HiTranslate } from "react-icons/hi";
27+
import {
28+
FaVideo,
29+
FaPlayCircle,
30+
FaBell
31+
} from "react-icons/fa";
2732
import { IconContext } from "react-icons";
2833

2934
// Get code, flag and name of the current language
@@ -182,13 +187,8 @@ const Header = ({
182187
!!orgProperties["org.opencastproject.admin.mediamodule.url"] && (
183188
<Tooltip title={t("MEDIAMODULE")}>
184189
<div className="nav-dd">
185-
<a
186-
href={
187-
orgProperties["org.opencastproject.admin.mediamodule.url"]
188-
}
189-
target="_blank" rel="noreferrer"
190-
>
191-
<span className="fa fa-play-circle" />
190+
<a href={orgProperties["org.opencastproject.admin.mediamodule.url"]} target="_blank" rel="noreferrer">
191+
<FaPlayCircle />
192192
</a>
193193
</div>
194194
</Tooltip>
@@ -199,7 +199,7 @@ const Header = ({
199199
<Tooltip title="Studio">
200200
<div className="nav-dd">
201201
<a href={studioURL} target="_blank" rel="noreferrer">
202-
<span className="fa fa-video-camera" />
202+
<FaVideo />
203203
</a>
204204
</div>
205205
</Tooltip>
@@ -208,13 +208,11 @@ const Header = ({
208208
{/* System warnings and notifications */}
209209
{hasAccess("ROLE_ADMIN", user) && (
210210
<Tooltip title={t("SYSTEM_NOTIFICATIONS")}>
211-
<div
212-
className="nav-dd info-dd"
213-
id="info-dd"
214-
ref={containerNotify}
215-
>
211+
<div className="nav-dd info-dd" id="info-dd" ref={containerNotify}>
216212
<div onClick={() => setMenuNotify(!displayMenuNotify)}>
217-
<i className="fa fa-bell" aria-hidden="true" />
213+
<IconContext.Provider value={{ attr: {"aria-hidden": true} }}>
214+
<FaBell />
215+
</IconContext.Provider>
218216
{errorCounter !== 0 && (
219217
<span id="error-count" className="badge">
220218
{errorCounter}

0 commit comments

Comments
 (0)