diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx index 60b9bcf..52d224b 100644 --- a/frontend/src/pages/HomePage.tsx +++ b/frontend/src/pages/HomePage.tsx @@ -4,6 +4,7 @@ import {Message, Grid, Loader, Header, Item} from 'semantic-ui-react' import {useObservable} from 'rxjs-hooks' import {of, from} from 'rxjs' import {map, switchMap} from 'rxjs/operators' +import {useTranslation} from 'react-i18next' import api from 'api' import {Stats, Page, Map} from 'components' @@ -24,14 +25,15 @@ function MostRecentTrack() { [] ) - const {t} = useTranslation() return ( <>
Most recent tracks
{tracks?.length === 0 ? ( - No public tracks yet. Upload the first! + + No public tracks yet. Upload the first! + ) : tracks ? ( @@ -54,7 +56,6 @@ export default function HomePage() { -