Skip to content

Commit

Permalink
Merge pull request #234 from storybookjs/fix-toc-types
Browse files Browse the repository at this point in the history
change ItemType enum to avoid breaking change
  • Loading branch information
winkerVSbecks authored Nov 30, 2020
2 parents e01ad2d + 44853b1 commit 8455d66
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/table-of-contents/TableOfContentsItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ import { Link } from '../Link';

type SetMenuOpenStateById = (args: { id: string; isOpen: boolean }) => void;

// export type ItemType = 'menu' | 'link' | 'bullet-link';

export enum ItemType {
MENU,
LINK,
BULLET_LINK,
MENU = 'menu',
LINK = 'link',
BULLET_LINK = 'bullet-link',
}

export interface Item {
Expand Down

0 comments on commit 8455d66

Please sign in to comment.