useGroupMedia: don't use statusSchema directly yet so we can change it

This commit is contained in:
Alex Gleason 2023-05-04 11:51:50 -05:00
parent 1dec42cd9f
commit 9a64375681
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -1,7 +1,10 @@
import { Entities } from 'soapbox/entity-store/entities'; import { Entities } from 'soapbox/entity-store/entities';
import { useEntities } from 'soapbox/entity-store/hooks'; import { useEntities } from 'soapbox/entity-store/hooks';
import { useApi } from 'soapbox/hooks/useApi'; import { useApi } from 'soapbox/hooks/useApi';
import { statusSchema } from 'soapbox/schemas/status'; import { normalizeStatus } from 'soapbox/normalizers';
import { toSchema } from 'soapbox/utils/normalizers';
const statusSchema = toSchema(normalizeStatus);
function useGroupMedia(groupId: string) { function useGroupMedia(groupId: string) {
const api = useApi(); const api = useApi();