Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroerta committed Nov 14, 2021
1 parent eee23ce commit 1fd04bb
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions devtool/src/_shared/components/Slices/Components/MorfeoComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,23 @@ export const MorfeoComponent: React.FC<Props> = ({
});
const className = classes[name];

return React.createElement(tag as TagName, {
...componentProps,
...props,
className: clsx(
className,
(props as any).className,
(componentProps as any).className,
),
style: {
...(props as any).style,
...(componentProps as any).style,
return React.createElement(
tag as TagName,
{
...componentProps,
...props,
className: clsx(
className,
(props as any).className,
(componentProps as any).className,
),
style: {
...(props as any).style,
...(componentProps as any).style,
},
},
}, SELF_CLOSING_TAGS.includes(tag) ? undefined : devtoolConfig?.label || children);
SELF_CLOSING_TAGS.includes(tag)
? undefined
: devtoolConfig?.label || children,
);
};

0 comments on commit 1fd04bb

Please sign in to comment.