Skip to content

Commit 9b527ae

Browse files
bug(prompt): revert syntax change to fix broken page (#5041)
Co-authored-by: DouG Molidor <[email protected]>
1 parent 68b0178 commit 9b527ae

File tree

1 file changed

+38
-44
lines changed

1 file changed

+38
-44
lines changed

ui/components/prompt/base/example.jsx

Lines changed: 38 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,42 @@ import {
1010
Backdrop
1111
} from '../../modals/base/example';
1212

13-
export default [
14-
{
15-
id: 'default',
16-
label: 'Default',
17-
element: (
18-
<div className="demo-only" style={{ height: '24rem' }}>
19-
<Backdrop>
20-
<Modal
21-
tabIndex="0"
22-
role="alertdialog"
23-
aria-labelledby="prompt-heading-id"
24-
aria-describedby="prompt-message-wrapper"
25-
className="slds-modal_prompt"
26-
closeButton={false}
27-
>
28-
<ModalHeader
29-
className="slds-theme_error slds-theme_alert-texture"
30-
>
31-
<h1 className="slds-text-heading_medium" id="prompt-heading-id">
32-
Service unavailable
33-
</h1>
34-
</ModalHeader>
35-
<ModalContent
36-
className="slds-p-around_medium"
37-
id="prompt-message-wrapper"
38-
>
39-
<p>
40-
Sit nulla est ex deserunt exercitation anim occaecat. Nostrud ullamco
41-
deserunt aute id consequat veniam incididunt duis in sint irure nisi.
42-
Mollit officia cillum Lorem ullamco minim nostrud elit officia tempor
43-
esse quis. Cillum sunt ad dolore quis aute consequat ipsum magna
44-
exercitation reprehenderit magna. Tempor cupidatat consequat elit
45-
dolor adipisicing.
46-
</p>
47-
</ModalContent>
13+
export default (
14+
<div className="demo-only" style={{ height: '24rem' }}>
15+
<Backdrop>
16+
<Modal
17+
tabIndex="0"
18+
role="alertdialog"
19+
aria-labelledby="prompt-heading-id"
20+
aria-describedby="prompt-message-wrapper"
21+
className="slds-modal_prompt"
22+
closeButton={false}
23+
>
24+
<ModalHeader
25+
className="slds-theme_error slds-theme_alert-texture"
26+
>
27+
<h1 className="slds-text-heading_medium" id="prompt-heading-id">
28+
Service unavailable
29+
</h1>
30+
</ModalHeader>
31+
<ModalContent
32+
className="slds-p-around_medium"
33+
id="prompt-message-wrapper"
34+
>
35+
<p>
36+
Sit nulla est ex deserunt exercitation anim occaecat. Nostrud ullamco
37+
deserunt aute id consequat veniam incididunt duis in sint irure nisi.
38+
Mollit officia cillum Lorem ullamco minim nostrud elit officia tempor
39+
esse quis. Cillum sunt ad dolore quis aute consequat ipsum magna
40+
exercitation reprehenderit magna. Tempor cupidatat consequat elit
41+
dolor adipisicing.
42+
</p>
43+
</ModalContent>
4844

49-
<ModalFooter className="slds-theme_default">
50-
<button className="slds-button slds-button_neutral">Got It</button>
51-
</ModalFooter>
52-
</Modal>
53-
</Backdrop>
54-
</div>
55-
)
56-
}
57-
];
45+
<ModalFooter className="slds-theme_default">
46+
<button className="slds-button slds-button_neutral">Got It</button>
47+
</ModalFooter>
48+
</Modal>
49+
</Backdrop>
50+
</div>
51+
);

0 commit comments

Comments
 (0)