Skip to content

Commit

Permalink
fix: correct props typing, add jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Feb 20, 2024
1 parent bb481be commit a43121f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/layouts/CoreItemView/CoreItemView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ import { styled } from "@mui/material/styles";
import {
CoreContentViewLayout,
coreContentViewLayoutClassNames,
} from "@layouts/CoreContentViewLayout";
type CoreContentViewLayoutProps,
} from "@/layouts/CoreContentViewLayout";

/**
* Provides common styles/props/logic to all core-item single-item views.
* Provides a common layout to all single-item and form views.
*
* - Uses {@link CoreContentViewLayout} as a base.
*/
export const CoreItemView = ({
headerLabel,
Expand Down Expand Up @@ -33,4 +36,4 @@ export type CoreItemViewProps = {
headerLabel: string; // is optional in CoreContentViewLayout
headerComponents?: React.ReactNode;
children: React.ReactNode;
} & React.ComponentProps<typeof StyledCoreContentViewLayout>;
} & CoreContentViewLayoutProps;

0 comments on commit a43121f

Please sign in to comment.