|
@@ -1,11 +1,10 @@
|
|
|
import React, { ReactElement } from 'react';
|
|
import React, { ReactElement } from 'react';
|
|
|
import Button from '@material/react-button';
|
|
import Button from '@material/react-button';
|
|
|
|
|
+import Icon from 'components/Icon';
|
|
|
import IconButton from '@material/react-icon-button';
|
|
import IconButton from '@material/react-icon-button';
|
|
|
-import MaterialIcon from '@material/react-material-icon';
|
|
|
|
|
|
|
|
|
|
import '@material/react-button/dist/button.css';
|
|
import '@material/react-button/dist/button.css';
|
|
|
import '@material/react-icon-button/dist/icon-button.css'
|
|
import '@material/react-icon-button/dist/icon-button.css'
|
|
|
-import '@material/react-material-icon/dist/material-icon.css';
|
|
|
|
|
|
|
|
|
|
type CBKButtonProps = {
|
|
type CBKButtonProps = {
|
|
|
children: string|ReactElement,
|
|
children: string|ReactElement,
|
|
@@ -21,7 +20,7 @@ export default function CBKButton(props: any) {
|
|
|
if (props.icon) {
|
|
if (props.icon) {
|
|
|
return (
|
|
return (
|
|
|
<IconButton onClick={props.onClick} {...props}>
|
|
<IconButton onClick={props.onClick} {...props}>
|
|
|
- <MaterialIcon icon={props.icon}/>
|
|
|
|
|
|
|
+ <Icon material icon={props.icon}/>
|
|
|
</IconButton>
|
|
</IconButton>
|
|
|
);
|
|
);
|
|
|
} else {
|
|
} else {
|