import axios from 'axios' import { useEffect, useState } from 'react' import Button from '@material-ui/core/Button' import Dialog from '@material-ui/core/Dialog' import DialogActions from '@material-ui/core/DialogActions' import DialogContent from '@material-ui/core/DialogContent' import DialogTitle from '@material-ui/core/DialogTitle' import InfoIcon from '@material-ui/icons/Info' import ListItem from '@material-ui/core/ListItem' 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, useTheme } from '@material-ui/core/styles' import { lightTheme } from '../style/materialUISetup' export default function AboutDialog() { const { t } = useTranslation() const [open, setOpen] = useState(false) const [torrServerVersion, setTorrServerVersion] = useState('') useEffect(() => { axios.get(echoHost()).then(({ data }) => setTorrServerVersion(data)) }, []) const primary = useTheme().palette.primary.main return (
setOpen(true)}> setOpen(false)} aria-labelledby='form-dialog-title' fullWidth maxWidth='sm'> {t('About')}

TorrServer {torrServerVersion}

https://github.com/YouROK/TorrServer

{t('ThanksToEveryone')}


{t('SpecialThanks')}

anacrolix Matt Joiner  github.com/anacrolix
nikk  github.com/tsynik
dancheskus  github.com/dancheskus
tw1cker Руслан Пахнев  github.com/Nemiroff
SpAwN_LMG
) }