Skip to content

Commit 6ab370d

Browse files
authored
Merge pull request #167 from forumone/various-fixes
Fix drupal utils path. Use type instead of interface.
2 parents cd32a8b + 79b4f1a commit 6ab370d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

source/03-components/Accordion/Accordion.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ import styles from './accordion.module.css';
99

1010
// The Accordion component provides props itself for the AccordionItems,
1111
// so omit those from the item objects.
12-
interface BaseAccordionItem
13-
extends Omit<
14-
AccordionItemProps,
15-
'accordionSpeed' | 'handleClick' | 'isStepList' | 'toggleRef'
16-
> {}
12+
type BaseAccordionItem = Omit<
13+
AccordionItemProps,
14+
'accordionSpeed' | 'handleClick' | 'isStepList' | 'toggleRef'
15+
>;
1716

1817
interface AccordionProps extends GessoComponent {
1918
accordionItems: BaseAccordionItem[];

0 commit comments

Comments
 (0)