diff --git a/web/package.json b/web/package.json index d166c66..67a8c88 100644 --- a/web/package.json +++ b/web/package.json @@ -13,6 +13,7 @@ "material-ui-image": "^3.3.2", "parse-torrent": "^9.1.3", "parse-torrent-title": "^1.3.0", + "polished": "^4.1.3", "react": "^17.0.2", "react-copy-to-clipboard": "^5.0.3", "react-div-100vh": "^0.6.0", diff --git a/web/src/components/About.jsx b/web/src/components/About.jsx index d4bc273..29f1def 100644 --- a/web/src/components/About.jsx +++ b/web/src/components/About.jsx @@ -11,13 +11,10 @@ import ListItemIcon from '@material-ui/core/ListItemIcon' import ListItemText from '@material-ui/core/ListItemText' import { useTranslation } from 'react-i18next' import { echoHost } from 'utils/Hosts' -import { ThemeProvider } from '@material-ui/core/styles' -import { mainColors } from 'style/colors' +import { ThemeProvider, useTheme } from '@material-ui/core/styles' import { lightTheme } from '../style/materialUISetup' -const { primary } = mainColors - export default function AboutDialog() { const { t } = useTranslation() const [open, setOpen] = useState(false) @@ -26,6 +23,8 @@ export default function AboutDialog() { axios.get(echoHost()).then(({ data }) => setTorrServerVersion(data)) }, []) + const primary = useTheme().palette.primary.main + return (