File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
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
+ } , { } )
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ export { Form } from './form/Form'
17
17
export { FormControl } from './form/FormControl'
18
18
export { Heading } from './typography/Heading'
19
19
export { Hidden } from './hidden/Hidden'
20
- export { Icon } from './icon/Icon'
21
20
export { IconButton } from './iconbutton/IconButton'
21
+ export { Icons } from './icons/Icons'
22
22
export { Link } from './link/Link'
23
23
export { Loader } from './loader/Loader'
24
24
export { Logo } from './logo/Logo'
@@ -90,5 +90,3 @@ export {
90
90
TableRow ,
91
91
TableSortLabel
92
92
}
93
-
94
- export { Icons } from './icon'
You can’t perform that action at this time.
0 commit comments