6 changed files with 34 additions and 33 deletions
@ -1,19 +1,10 @@ |
|||||||
import { useTranslation } from "react-i18next"; |
import { useTranslation } from "react-i18next"; |
||||||
|
|
||||||
import { Loading } from "@/components/layout/Loading"; |
import { Loading } from "@/components/layout/Loading"; |
||||||
import { useSearchQuery } from "@/hooks/useSearchQuery"; |
|
||||||
|
|
||||||
export function SearchLoadingView() { |
export function SearchLoadingView() { |
||||||
const { t } = useTranslation(); |
const { t } = useTranslation(); |
||||||
const [query] = useSearchQuery(); |
|
||||||
return ( |
return ( |
||||||
<Loading |
<Loading className="mb-24 mt-40 " text={t("search.loading") || "..."} /> |
||||||
className="mb-24 mt-40 " |
|
||||||
text={ |
|
||||||
t(`search.loading_${query.type}`) || |
|
||||||
t("search.loading") || |
|
||||||
"Fetching your favourite shows..." |
|
||||||
} |
|
||||||
/> |
|
||||||
); |
); |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue