Use gql for "sources"

This commit is contained in:
schroda
2023-09-01 20:29:19 +02:00
parent 4a80e18cd0
commit e1f338d013
4 changed files with 20 additions and 8 deletions

View File

@@ -53,7 +53,8 @@ export default function Sources() {
const [shownLangs, setShownLangs] = useLocalStorage<string[]>('shownSourceLangs', sourceDefualtLangs());
const [showNsfw] = useLocalStorage<boolean>('showNsfw', true);
const { data: sources, isLoading } = requestManager.useGetSourceList();
const { data, loading: isLoading } = requestManager.useGetSourceList();
const sources = data?.sources.nodes;
const navigate = useNavigate();