Merge pull request #16 from bknd-io/chores/export-data-prototype

export data prototype
This commit is contained in:
dswbx
2024-12-03 17:17:53 +01:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ export * from "./fields";
export * from "./entities"; export * from "./entities";
export * from "./relations"; export * from "./relations";
export * from "./schema/SchemaManager"; export * from "./schema/SchemaManager";
export * from "./prototype";
export { export {
type RepoQuery, type RepoQuery,

View File

@@ -146,6 +146,7 @@ export function Header({ hasSidebar = true }) {
} }
function UserMenu() { function UserMenu() {
const { adminOverride } = useBknd();
const auth = useAuth(); const auth = useAuth();
const [navigate] = useNavigate(); const [navigate] = useNavigate();
const { logout_route } = useBkndWindowContext(); const { logout_route } = useBkndWindowContext();
@@ -170,7 +171,9 @@ function UserMenu() {
items.push({ label: `Logout ${auth.user.email}`, onClick: handleLogout, icon: IconKeyOff }); items.push({ label: `Logout ${auth.user.email}`, onClick: handleLogout, icon: IconKeyOff });
} }
items.push(() => <UserMenuThemeToggler />); if (!adminOverride) {
items.push(() => <UserMenuThemeToggler />);
}
return ( return (
<> <>