Skip to content

Commit b496edc

Browse files
fix typings
1 parent 345837f commit b496edc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wp-react-lib/src/providers/MediaProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface MediaProviderProps {
1111
locale: string
1212
onLoad: ({id, locale}: {id: string, locale: string}) => void
1313
loading: boolean
14-
media: Media[] | null
14+
media: Media | null
1515
}
1616

1717
/*

wp-react-lib/src/providers/context-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface PageContextType {
1414
}
1515

1616
export interface MediaContextType {
17-
media: Media[] | null
17+
media: Media | null
1818
locale: string | undefined
1919
}
2020

0 commit comments

Comments
 (0)