-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Here is a case that we want to just use fixed header and not passing children to PageShell:
const HistoryShell: React.FC<{}> = ({ children }) => {
const history = useHistory()
return (
<Box>
<PageShell
headerProps={{
withBack: true,
onBackClick: () => {
history.push('/console/org-settings/billing')
}
}}
bodyProps={{
pb: 0
}}
title="History"
></PageShell>
{children}
</Box>
)
}
this is resolved by making children props optional, see #179
we might need a props to make header sticky when scrolling.
Metadata
Metadata
Assignees
Labels
No labels