Skip to content

Commit

Permalink
feat: allow for empty icon
Browse files Browse the repository at this point in the history
  • Loading branch information
seankwarren committed Sep 14, 2023
1 parent b290121 commit 660df53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mui/components/icon/IconByName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ import WifiTethering from "@mui/icons-material/WifiTethering";
import WorkspacesOutlined from "@mui/icons-material/WorkspacesOutlined";
import WrapText from "@mui/icons-material/WrapText";
import YoutubeSearchedFor from "@mui/icons-material/YoutubeSearchedFor";
import Icon from "@mui/material/Icon";
import SvgIcon, { SvgIconProps } from "@mui/material/SvgIcon";
import React from "react";

Expand Down Expand Up @@ -356,6 +357,8 @@ const iconComponentMap: Record<string, typeof SvgIcon | ReturnType<typeof rotate
"shapes.lock": Lock,
"shapes.drag": DragIndicator,
"shapes.blurCircular": BlurCircularOutlined,
// @ts-ignore
empty: Icon,
};

export default function IconByName({
Expand Down

0 comments on commit 660df53

Please sign in to comment.