Skip to content

Commit

Permalink
Remove autodocs from modal stories
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenbf committed Oct 29, 2024
1 parent 00b3aaf commit 1ba1b00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
body?.classList.remove('popup-x');
};
},
tags: ['!autodocs'],
} as Meta<typeof FullscreenNotice>;

type Story = StoryObj<typeof FullscreenNotice>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Header({ isScrolling, onBack }: HeaderProps) {
const htmlElement = document.getElementsByTagName('html')[0]!;
const bodyElement = document.getElementsByTagName('body')[0]!;

export type ModalProps = {
type Props = {
/** Control whether notice is shown or not */
open: boolean;
/** Invoked when the notice is closed */
Expand All @@ -50,11 +50,7 @@ export type ModalProps = {
* This content is shown in a modal!
* </FullscreenNotice>
*/
export default function FullscreenNotice({
open,
onClose,
children,
}: PropsWithChildren<ModalProps>): JSX.Element | null {
export default function FullscreenNotice({ open, onClose, children }: PropsWithChildren<Props>): JSX.Element | null {
const [scroll, setScroll] = React.useState(0);
const isScrolling = useMemo(() => scroll > 0, [!!scroll]);
const close = useCallback(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Modal from './Modal';
export default {
title: 'Shared/Modal',
component: Modal,
tags: ['!autodocs'],
} as Meta<typeof Modal>;

type Story = StoryObj<typeof Modal>;
Expand Down

0 comments on commit 1ba1b00

Please sign in to comment.