Skip to content

Commit

Permalink
fix(global): 🔥 remove unnecessary code
Browse files Browse the repository at this point in the history
remove unnecessary code

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

let tmpType = type || options?.type || __IconTypes.MATERIAL_ICON;
let tmpIcon = props.children || icon || options?.icon || "";
Expand All @@ -36,7 +34,6 @@ export default function CoreIcon(props) {
<NativeIcon
type={tmpType}
name={tmpIcon}
baseClassName={baseClassName}
childrenFlag={
tmpType === __IconTypes.MATERIAL_ICON || tmpType === __IconTypes.MATERIAL_OUTLINED_ICON
? true
Expand All @@ -47,21 +44,6 @@ export default function CoreIcon(props) {
/>
);

// return (
// <NativeIcon
// type={tmpType}
// name={tmpIcon}
// size={props.size}
// childrenFlag={
// tmpType === __IconTypes.MATERIAL_ICON || tmpType === __IconTypes.MATERIAL_OUTLINED_ICON
// ? true
// : false
// }
// sx={type === __IconTypes.MATERIAL_ICON ? sx : { ...sx, overflow: "unset" }}
// styleClasses={props.styleClasses || []}
// {...restProps}
// />
// );
}

CoreIcon.validProps = [
Expand Down

0 comments on commit 5dcf053

Please sign in to comment.