editpage-fix
This commit is contained in:
parent
90691aa650
commit
c623356893
|
@ -125,7 +125,7 @@ export const AuthorsProvider = (props: { children: JSX.Element }) => {
|
||||||
return sortedTopAuthors
|
return sortedTopAuthors
|
||||||
})
|
})
|
||||||
|
|
||||||
const loadAuthorsPage = async (args: QueryLoad_Authors_ByArgs): Promise<void> => {
|
const loadAuthorsPaginated = async (args: QueryLoad_Authors_ByArgs): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
const fetcher = await loadAuthors(args)
|
const fetcher = await loadAuthors(args)
|
||||||
const data = await fetcher()
|
const data = await fetcher()
|
||||||
|
@ -179,7 +179,7 @@ export const AuthorsProvider = (props: { children: JSX.Element }) => {
|
||||||
addAuthors,
|
addAuthors,
|
||||||
addAuthor,
|
addAuthor,
|
||||||
loadAuthor,
|
loadAuthor,
|
||||||
loadAuthors: loadAuthorsPage,
|
loadAuthors: loadAuthorsPaginated,
|
||||||
topAuthors,
|
topAuthors,
|
||||||
authorsByTopic,
|
authorsByTopic,
|
||||||
setAuthorsSort
|
setAuthorsSort
|
||||||
|
|
|
@ -27,7 +27,7 @@ export const getContentTypeTitle = (layout: LayoutType) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const EditPage = () => {
|
export default () => {
|
||||||
const { t } = useLocalize()
|
const { t } = useLocalize()
|
||||||
const { session } = useSession()
|
const { session } = useSession()
|
||||||
const snackbar = useSnackbar()
|
const snackbar = useSnackbar()
|
||||||
|
@ -70,5 +70,3 @@ export const EditPage = () => {
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default EditPage
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user