Skip to content

Commit 4e3afae

Browse files
committed
feat(CC-batch-4): updated panel content as prop
1 parent cb87560 commit 4e3afae

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

packages/code-connect/components/Drawer/Drawer.figma.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ figma.connect(
1010
isExpanded: figma.boolean('Show Footer actions'),
1111

1212
// enum
13-
isInline: figma.enum('Type', {
14-
Overlay: undefined,
15-
Inline: true
16-
}),
13+
isInline: figma.enum('Type', { Inline: true }),
1714
position: figma.enum('Position', {
1815
'Left In Main Content Area': 'start',
1916
'Right - Full Page': undefined,
@@ -24,7 +21,7 @@ figma.connect(
2421
'Right In Main Content Area': undefined
2522
}),
2623

27-
panelContent: figma.children('*')
24+
panelContent: figma.textContent('Panel header')
2825
},
2926
example: (props) => (
3027
// Documentation for Drawer can be found at https://www.patternfly.org/components/drawer

packages/code-connect/components/Drawer/DrawerContent.figma.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ figma.connect(
66
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=35627-47890&m=dev',
77
{
88
props: {
9-
children: figma.children('*')
9+
panelContent: figma.children('*')
1010
},
1111
example: (props) => (
1212
// Documentation for DrawerContent can be found at https://www.patternfly.org/components/drawer
13-
<DrawerContent>{props.children}</DrawerContent>
13+
<DrawerContent panelContent={props.panelContent} />
1414
)
1515
}
1616
);

0 commit comments

Comments
 (0)