-
Notifications
You must be signed in to change notification settings - Fork 381
Expand file tree
/
Copy pathAboutModal.figma.tsx
More file actions
63 lines (60 loc) · 1.81 KB
/
AboutModal.figma.tsx
File metadata and controls
63 lines (60 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import figma from '@figma/code-connect';
import { AboutModal, Button, Content } from '@patternfly/react-core';
/**
* PatternFly AboutModal integration for Figma Code Connect
* @see https://www.patternfly.org/components/about-modal
*/
figma.connect(
AboutModal,
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=2879-13973&t=15CEJpGgVui7qP5Q-11',
{
props: {
productName: figma.string('Product name')
},
example: ({ productName }) => {
/* eslint-disable */
const [isOpen, setIsOpen] = React.useState(false);
/* eslint-enable */
return (
<>
<Button
variant="primary"
onClick={() => {
setIsOpen(!isOpen);
}}
>
Show about modal
</Button>
<AboutModal
isOpen={isOpen}
onClose={() => setIsOpen(false)}
productName={productName}
trademark="Copyright © 2024"
brandImageSrc="/assets/images/brand.svg"
brandImageAlt="Brand Image Alt Text"
backgroundImageSrc="/assets/images/background.png"
>
<Content>
<dl>
<dt>CFME version</dt>
<dd>5.5.3.4.20102789036450</dd>
<dt>Cloudforms Version</dt>
<dd>4.1</dd>
<dt>Server name</dt>
<dd>40DemoMaster</dd>
<dt>User name</dt>
<dd>Administrator</dd>
<dt>User role</dt>
<dd>EvmRole-super_administrator</dd>
<dt>Browser version</dt>
<dd>601.2</dd>
<dt>Browser OS</dt>
<dd>Mac</dd>
</dl>
</Content>
</AboutModal>
</>
);
}
}
);