Skip to content

Commit 90e2533

Browse files
fix: use explicit React.Fragment in CommandContent component
Co-Authored-By: [email protected] <[email protected]>
1 parent 55221a7 commit 90e2533

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

website/src/components/CommandDropdown/CommandContent.jsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState } from 'react';
1+
import React, { useState, Fragment } from 'react';
22
import CommandDropdown from './index';
33

44
export default function CommandContent() {
@@ -9,7 +9,7 @@ export default function CommandContent() {
99

1010
const content = {
1111
'Create Record - Lead': (
12-
<>
12+
<Fragment>
1313
<h3>Create Record - Lead</h3>
1414
<p>Create a new lead record in Salesforce with specified details such as name, company, status, and other relevant information.</p>
1515

@@ -36,7 +36,7 @@ export default function CommandContent() {
3636

3737
<pre><code className="language-js">{`{{LeadStatus.selectedOptionValue}}
3838
// Example: "Open"`}</code></pre>
39-
</>
39+
</Fragment>
4040
),
4141
// Add other command content here following the same pattern
4242
};
@@ -47,9 +47,9 @@ export default function CommandContent() {
4747
};
4848

4949
return (
50-
<>
50+
<Fragment>
5151
<CommandDropdown onSelect={setSelectedCommand} />
5252
{renderCommandContent()}
53-
</>
53+
</Fragment>
5454
);
5555
}

0 commit comments

Comments
 (0)