Skip to content

Commit a8fadbd

Browse files
committed
feat(CC-simple-components): removed react import
1 parent b8b9def commit a8fadbd

File tree

5 files changed

+51
-53
lines changed

5 files changed

+51
-53
lines changed

packages/react-core/codeConnect/components/AboutModal.figma.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ figma.connect(
2020
brandImageSrc="/assets/brand_image_src.jpg"
2121
productName={props.productName}
2222
trademark={'Sample footer trademark text'}
23-
aria-label="About modal"
2423
>
2524
{props.children}
2625
</AboutModal>

packages/react-core/codeConnect/components/BackToTop.figma.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BackToTop } from 'src/components/BackToTop';
1+
import { BackToTop } from '@patternfly/react-core/dist/js/components/BackToTop';
22
import figma from '@figma/code-connect';
33

44
figma.connect(

packages/react-core/codeConnect/components/BackgroundImage.figma.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BackgroundImage } from 'src/components/BackgroundImage';
1+
import { BackgroundImage } from '@patternfly/react-core/dist/js/components/BackgroundImage';
22
import figma from '@figma/code-connect';
33

44
/**

packages/react-core/codeConnect/components/Banner.figma.tsx

Lines changed: 48 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import React from 'react';
2-
import { Banner } from 'src/components/Banner';
1+
import { Banner } from '@patternfly/react-core/dist/js/components/Banner';
32
import figma from '@figma/code-connect';
43

54
// Design updates
@@ -66,28 +65,28 @@ import figma from '@figma/code-connect';
6665
* code example you'd like to see in Figma
6766
*/
6867

69-
figma.connect(
70-
Banner,
71-
'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/H3LonYnwH26v9zNEa2SXFk/PatternFly-6%3A-Components?node-id=221-937&t=7hKW0DzmfHGhNQnn-11',
72-
{
73-
props: {
74-
// use `Content` ubiquitiously
75-
figmaText: figma.textContent('Content'),
76-
customStatusIcon: figma.instance('Custom status icon'),
77-
leftText: figma.boolean('Left text'),
78-
rightText: figma.boolean('Right text'),
79-
centerText: figma.string('✏️ Center text'),
80-
status: figma.enum('Status', {
81-
Success: 'success',
82-
Warning: 'warning',
83-
Danger: 'danger',
84-
Info: 'info',
85-
Custom: 'custom'
86-
})
87-
},
88-
example: (props) => <Banner>{props.figmaText}</Banner>
89-
}
90-
);
68+
// figma.connect(
69+
// Banner,
70+
// 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/H3LonYnwH26v9zNEa2SXFk/PatternFly-6%3A-Components?node-id=221-937&t=7hKW0DzmfHGhNQnn-11',
71+
// {
72+
// props: {
73+
// // use `Content` ubiquitiously
74+
// figmaText: figma.textContent('Content'),
75+
// customStatusIcon: figma.instance('Custom status icon'),
76+
// leftText: figma.boolean('Left text'),
77+
// rightText: figma.boolean('Right text'),
78+
// centerText: figma.string('✏️ Center text'),
79+
// status: figma.enum('Status', {
80+
// Success: 'success',
81+
// Warning: 'warning',
82+
// Danger: 'danger',
83+
// Info: 'info',
84+
// Custom: 'custom'
85+
// })
86+
// },
87+
// example: (props) => <Banner>{props.figmaText}</Banner>
88+
// }
89+
// );
9190

9291
/**
9392
* -- This file was auto-generated by Code Connect --
@@ -97,28 +96,28 @@ figma.connect(
9796
* code example you'd like to see in Figma
9897
*/
9998

100-
figma.connect(
101-
Banner,
102-
'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/H3LonYnwH26v9zNEa2SXFk/PatternFly-6%3A-Components?node-id=221-1443&t=7hKW0DzmfHGhNQnn-11',
103-
{
104-
props: {
105-
icon: figma.boolean('Icon'),
106-
iconSwap: figma.instance('Icon Swap'),
107-
leftText: figma.boolean('Left text'),
108-
rightText: figma.boolean('Right text'),
109-
centerText: figma.string('✏️ Center text'),
110-
color: figma.enum('Color', {
111-
Red: 'red',
112-
Orangered: 'orangered',
113-
Orange: 'orange',
114-
Gold: 'gold',
115-
Green: 'green',
116-
Cyan: 'cyan',
117-
Blue: 'blue',
118-
Purple: 'purple',
119-
Gray: 'gray'
120-
})
121-
},
122-
example: (props) => <Banner>{props.figmaText}</Banner>
123-
}
124-
);
99+
// figma.connect(
100+
// Banner,
101+
// 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/H3LonYnwH26v9zNEa2SXFk/PatternFly-6%3A-Components?node-id=221-1443&t=7hKW0DzmfHGhNQnn-11',
102+
// {
103+
// props: {
104+
// icon: figma.boolean('Icon'),
105+
// iconSwap: figma.instance('Icon Swap'),
106+
// leftText: figma.boolean('Left text'),
107+
// rightText: figma.boolean('Right text'),
108+
// centerText: figma.string('✏️ Center text'),
109+
// color: figma.enum('Color', {
110+
// Red: 'red',
111+
// Orangered: 'orangered',
112+
// Orange: 'orange',
113+
// Gold: 'gold',
114+
// Green: 'green',
115+
// Cyan: 'cyan',
116+
// Blue: 'blue',
117+
// Purple: 'purple',
118+
// Gray: 'gray'
119+
// })
120+
// },
121+
// example: (props) => <Banner>{props.figmaText}</Banner>
122+
// }
123+
// );

packages/react-core/codeConnect/components/Brand.figma.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Brand } from 'src/components/Brand';
1+
import { Brand } from '@patternfly/react-core/dist/js/components/Brand';
22
import figma from '@figma/code-connect';
33

44
/**

0 commit comments

Comments
 (0)