Skip to content

Commit bf4304c

Browse files
committed
🐛 Fixing icon reference
Not sure why this failed in the build, but we probably don't need it as we should use the svg icons so it has been removed
1 parent 10fde2e commit bf4304c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/components/icons/Icons.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import * as MaterialIcons from '@material-ui/icons'
2+
3+
const icons = Object.keys(MaterialIcons).filter(key => key.endsWith('Sharp'))
4+
5+
export const Icons = icons.reduce((obj, key) => {
6+
obj[key.slice(0, -5)] = MaterialIcons[key]
7+
return obj
8+
}, {})

src/components/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export { Form } from './form/Form'
1717
export { FormControl } from './form/FormControl'
1818
export { Heading } from './typography/Heading'
1919
export { Hidden } from './hidden/Hidden'
20-
export { Icon } from './icon/Icon'
2120
export { IconButton } from './iconbutton/IconButton'
21+
export { Icons } from './icons/Icons'
2222
export { Link } from './link/Link'
2323
export { Loader } from './loader/Loader'
2424
export { Logo } from './logo/Logo'
@@ -90,5 +90,3 @@ export {
9090
TableRow,
9191
TableSortLabel
9292
}
93-
94-
export { Icons } from './icon'

0 commit comments

Comments
 (0)