etn-ccis / blui-react-component-library

Re-usable React components for use in Brightlayer UI applications
BSD 3-Clause "New" or "Revised" License
16 stars 10 forks source link

Empty State dev doc playground, `icon={<Router ... />}` does not get rendered correctly #831

Closed huayunh closed 7 months ago

huayunh commented 8 months ago

Describe the bug / expected behavior

Empty state, selecting <Router> for the icon prop will cause the icon to disappear.

<Router> exists as a MUI Icon and a Material Design icon.

What are the steps to reproduce?

  1. Go to https://brightlayer-ui-components.github.io/react-dev/components/empty-state/playground
  2. set the icon prop to <Router /> in the dropdown on the right

Screenshots / Screen recording

image

surajeaton commented 7 months ago

Add Router icon to icon lookup function.