Skip to content

Commit

Permalink
chore: remove useless Fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentC35 committed Nov 2, 2023
1 parent 3ccaa56 commit a42b1ac
Showing 1 changed file with 15 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,20 @@ import { useCustomLunaticStyles } from 'components/lightOrchestrator/lunaticStyl
export const ComponentDisplayer = ({ components, readonly, pageTag }) => {
const lunaticClasses = useCustomLunaticStyles();
return (
<>
<lunatic.LunaticComponents
autoFocusKey={pageTag}
components={components}
componentProps={() => ({
filterDescription: false,
disabled: readonly,
readOnly: readonly,
shortcut: true,
})}
wrapper={({ children, id, componentType }) => (
<div className={`${lunaticClasses.lunatic} ${componentType}`} key={`component-${id}`}>
{children}
</div>
)}
/>
</>
<lunatic.LunaticComponents
autoFocusKey={pageTag}
components={components}
componentProps={() => ({
filterDescription: false,
disabled: readonly,
readOnly: readonly,
shortcut: true,
})}
wrapper={({ children, id, componentType }) => (
<div className={`${lunaticClasses.lunatic} ${componentType}`} key={`component-${id}`}>
{children}
</div>
)}
/>
);
};

0 comments on commit a42b1ac

Please sign in to comment.