diff --git a/app/package.json b/app/package.json
index 19e625b..c9a0b89 100644
--- a/app/package.json
+++ b/app/package.json
@@ -3,7 +3,7 @@
"type": "module",
"sideEffects": false,
"bin": "./dist/cli/index.js",
- "version": "0.19.0",
+ "version": "0.20.0-rc.1",
"description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.",
"homepage": "https://bknd.io",
"repository": {
diff --git a/app/src/ui/Admin.tsx b/app/src/ui/Admin.tsx
index 17263bb..766b56a 100644
--- a/app/src/ui/Admin.tsx
+++ b/app/src/ui/Admin.tsx
@@ -5,7 +5,7 @@ import { BkndProvider } from "ui/client/bknd";
import { useTheme, type AppTheme } from "ui/client/use-theme";
import { Logo } from "ui/components/display/Logo";
import * as AppShell from "ui/layouts/AppShell/AppShell";
-import { ClientProvider, useBkndWindowContext, type ClientProviderProps } from "./client";
+import { ClientProvider, useBkndWindowContext, type ClientProviderProps } from "bknd/client";
import { createMantineTheme } from "./lib/mantine/theme";
import { Routes } from "./routes";
import type { BkndAdminAppShellOptions, BkndAdminEntitiesOptions } from "./options";
@@ -52,26 +52,30 @@ export type BkndAdminProps = {
children?: ReactNode;
};
-export default function Admin({
- baseUrl: baseUrlOverride,
- withProvider = false,
- config: _config = {},
- children,
-}: BkndAdminProps) {
- const { theme } = useTheme();
+export default function Admin(props: BkndAdminProps) {
const Provider = ({ children }: any) =>
- withProvider ? (
+ props.withProvider ? (
{children}
) : (
children
);
+
+ return (
+
+
+
+ );
+}
+
+function AdminInner(props: BkndAdminProps) {
+ const { theme } = useTheme();
const config = {
- ..._config,
+ ...props.config,
...useBkndWindowContext(),
};
@@ -82,14 +86,12 @@ export default function Admin({
);
return (
-
-
-
-
- {children}
-
-
-
+
+
+
+ {props.children}
+
+
);
}
diff --git a/examples/astro/src/pages/admin/[...admin].astro b/examples/astro/src/pages/admin/[...admin].astro
index d672c47..51e199f 100644
--- a/examples/astro/src/pages/admin/[...admin].astro
+++ b/examples/astro/src/pages/admin/[...admin].astro
@@ -15,7 +15,7 @@ export const prerender = false;