diff --git a/app/src/components/Common.js b/app/src/components/Common.js index 755ee423..d7b89253 100644 --- a/app/src/components/Common.js +++ b/app/src/components/Common.js @@ -1,5 +1,5 @@ import React, {useContext, useEffect, useState} from "react"; -import {Card, Container, IconGroup, Input, Modal, Pagination, Icon as SIcon} from 'semantic-ui-react'; +import {Card, Container, IconGroup, Input, Modal, Pagination} from 'semantic-ui-react'; import {Link, NavLink, useNavigate} from "react-router-dom"; import Message from "semantic-ui-react/dist/commonjs/collections/Message"; import {useDirectories, useDownloads, useHotspot, useSettings, useThrottle} from "../hooks/customHooks"; @@ -779,8 +779,7 @@ export function DarkModeToggle() { iconName = 'sun'; } - return ; const name = NAME || wrolpiIcon; const topNavText = wrol_mode ? <>{name}  : name; + const {i} = React.useContext(ThemeContext); const homeLink = {topNavText} @@ -69,7 +70,7 @@ export function NavBar() { return <> - + {homeLink} {icons} @@ -82,7 +83,7 @@ export function NavBar() { - + {homeLink} {links.map(i => )}