Skip to content

Commit

Permalink
fix(core): 🗑️ remove unnecessary desturctring
Browse files Browse the repository at this point in the history
remove unnecessary desturctring

Ref: #325
  • Loading branch information
PritamIT2023 committed Aug 24, 2024
1 parent c7b8937 commit ae9a284
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions package/components/dataDisplay/CoreIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,13 @@ export const __IconTypes = {
*/
export default function CoreIcon(props) {
props = sanitizeComponentProps(CoreIcon, props);
const { type, icon, options, sx, ...restProps } = props;
const {
baseClassName, type, icon, options, sx, ...restProps
} = props;

let tmpType = type || options?.type || __IconTypes.MATERIAL_ICON;
let tmpIcon = props.children || icon || options?.icon || "";

const {
baseClassName,
children
} = props;

return (
<NativeIcon
type={tmpType}
Expand All @@ -47,9 +44,7 @@ export default function CoreIcon(props) {
}
sx={type === __IconTypes.MATERIAL_ICON ? sx : { ...sx, overflow: "unset" }}
{...restProps}
>
{children}
</NativeIcon>
/>
);

// return (
Expand Down

0 comments on commit ae9a284

Please sign in to comment.