useGroupMedia: don't use statusSchema directly yet so we can change it
This commit is contained in:
parent
1dec42cd9f
commit
9a64375681
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue