mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
fixed prop warning
This commit is contained in:
parent
bdf49690a1
commit
7f7d4c7cf4
@ -92,7 +92,7 @@ export function Header(props: SheetProps & {
|
||||
navigationItems: { name: string, href: string, icon: React.ReactNode }[],
|
||||
}) {
|
||||
const stackAdminApp = useAdminApp();
|
||||
const { isCompactMediaQuery, onShowSidebar, navigationItems, ...sheetProps } = props;
|
||||
const { isCompactMediaQuery, onShowSidebar, navigationItems, headerHeight, ...sheetProps } = props;
|
||||
const basePath = `/projects/${stackAdminApp.projectId}`;
|
||||
const pathname = usePathname();
|
||||
|
||||
@ -117,7 +117,7 @@ export function Header(props: SheetProps & {
|
||||
borderRight: 'none',
|
||||
display: 'flex',
|
||||
alignItems: 'stretch',
|
||||
height: `${props.headerHeight}px`,
|
||||
height: `${headerHeight}px`,
|
||||
flexShrink: 0,
|
||||
[isCompactMediaQuery]: {
|
||||
display: "flex",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user