simplify i18n

This commit is contained in:
nikk gitanes
2021-06-05 17:32:26 +03:00
parent ecb2403bf6
commit aea6ac2bf6
9 changed files with 28 additions and 30 deletions

View File

@@ -18,7 +18,7 @@ const Transition = forwardRef((props, ref) => <Slide direction='up' ref={ref} {.
export default function Torrent({ torrent }) {
// eslint-disable-next-line no-unused-vars
const { t, i18n } = useTranslation('translations')
const { t } = useTranslation()
const [isDetailedInfoOpened, setIsDetailedInfoOpened] = useState(false)
const [isDeleteTorrentOpened, setIsDeleteTorrentOpened] = useState(false)