Skip to content

Commit

Permalink
fix: make it possible to pass all supported props to AdminContext fro…
Browse files Browse the repository at this point in the history
…m AdminGuesser (#545)

Thanks!
  • Loading branch information
anjeylink committed Apr 5, 2024
1 parent 1d4e833 commit 5f80c05
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/AdminGuesser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,13 @@ const AdminGuesser = ({
// Props for AdminResourcesGuesser
includeDeprecated = false,
// Admin props
basename,
store,
dataProvider,
i18nProvider,
authProvider,
queryClient,
defaultTheme,
layout = Layout,
loginPage = LoginPage,
loading: loadingPage,
Expand Down Expand Up @@ -168,9 +173,14 @@ const AdminGuesser = ({
<AdminContext
i18nProvider={i18nProvider}
dataProvider={dataProvider}
basename={basename}
authProvider={authProvider}
store={store}
queryClient={queryClient}
theme={theme}
darkTheme={darkTheme}
lightTheme={lightTheme}>
lightTheme={lightTheme}
defaultTheme={defaultTheme}>
<IntrospectionContext.Provider value={introspectionContext}>
<SchemaAnalyzerContext.Provider value={schemaAnalyzer}>
<AdminResourcesGuesser
Expand Down

0 comments on commit 5f80c05

Please sign in to comment.