mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
Merge pull request #16 from bknd-io/chores/export-data-prototype
export data prototype
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!adminOverride) {
|
||||||
items.push(() => <UserMenuThemeToggler />);
|
items.push(() => <UserMenuThemeToggler />);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user