Move TechDocs Subheader props to reduce API report

Co-authored-by: Anders Näsman <realandersn@users.noreply.github.com>
Co-authored-by: Eric Peterson <iamEAP@users.noreply.github.com>
Signed-off-by: Otto Sichert <git@ottosichert.de>
This commit is contained in:
Otto Sichert
2022-04-12 10:29:27 +02:00
parent 55c9f867a2
commit a424baae87
2 changed files with 6 additions and 535 deletions
@@ -35,13 +35,13 @@ export const TechDocsReaderPageSubheader = withStyles(theme => ({
minHeight: 'auto',
padding: theme.spacing(3, 3, 0),
},
}))(({ ...rest }: ToolbarProps) => {
}))(({ toolbarProps }: { toolbarProps?: ToolbarProps }) => {
const addons = useTechDocsAddons();
if (!addons.renderComponentsByLocation(locations.SUBHEADER)) return null;
return (
<Toolbar {...rest}>
<Toolbar {...toolbarProps}>
{addons.renderComponentsByLocation(locations.SUBHEADER) && (
<Box
display="flex"