diff --git a/src/misc/Changelog.js b/src/misc/Changelog.js index a336ed2..888d52b 100644 --- a/src/misc/Changelog.js +++ b/src/misc/Changelog.js @@ -1,6 +1,7 @@ import React from 'react'; import { Trans } from '@lingui/macro'; +import makeStyles from '@mui/styles/makeStyles'; import Button from '@mui/material/Button'; import Grid from '@mui/material/Grid'; import ReactMarkdown from 'react-markdown'; @@ -8,10 +9,22 @@ import SemverGt from 'semver/functions/gt'; import SemverLte from 'semver/functions/lte'; import SemverValid from 'semver/functions/valid'; +import BoxText from './BoxText'; import Dialog from './modals/Dialog'; +const useStyles = makeStyles((theme) => ({ + h1: theme.typography.h1, + h2: theme.typography.h2, + h3: theme.typography.h3, + h4: theme.typography.h4, + a: { + color: theme.palette.secondary.main, + }, +})); + export default function Changelog(props) { const [$data, setData] = React.useState(''); + const classes = useStyles(); React.useEffect(() => { (async () => { @@ -90,12 +103,20 @@ export default function Changelog(props) { return null; } + const renderers = { + h1: (props) =>

{props.children}

, + h2: (props) =>

{props.children}

, + h3: (props) =>

{props.children}

, + h4: (props) =>

{props.children}

, + a: (props) => {props.children}, + } + return ( Changelog} - maxWidth={980} + maxWidth={600} buttonsRight={