diff --git a/packages/app/src/components/Icons/index.js b/packages/app/src/components/Icons/index.js deleted file mode 100644 index 72ab6f73..00000000 --- a/packages/app/src/components/Icons/index.js +++ /dev/null @@ -1,22 +0,0 @@ -import React from "react" - -// import icons lib -import * as lib1 from "feather-reactjs" -import * as lib2 from "react-icons/md" -import * as lib3 from "@ant-design/icons" - -export const Icons = { - ...lib1, - ...lib2, - ...lib3, -} - -export function createIconRender(icon, props) { - if (typeof Icons[icon] !== "undefined") { - return React.createElement(Icons[icon], props) - } - - return null -} - -export default Icons \ No newline at end of file diff --git a/packages/app/src/components/Icons/index.jsx b/packages/app/src/components/Icons/index.jsx new file mode 100644 index 00000000..0e09397e --- /dev/null +++ b/packages/app/src/components/Icons/index.jsx @@ -0,0 +1,29 @@ +import React from "react" + +// import icons lib +import * as lib1 from "feather-reactjs" +import * as lib2 from "react-icons/md" +import * as lib3 from "@ant-design/icons" + +const marginedStyle = { width: "1em", height: "1em", marginRight: "10px", verticalAlign: "-0.125em" } + +const customs = { + verifiedBadge: () => , +} + +export const Icons = { + ...customs, + ...lib1, + ...lib2, + ...lib3, +} + +export function createIconRender(icon, props) { + if (typeof Icons[icon] !== "undefined") { + return React.createElement(Icons[icon], props) + } + + return null +} + +export default Icons \ No newline at end of file