add icon to add/delete component as defined in the styleguide

This commit is contained in:
Florian Scholdei
2019-09-23 14:13:07 +02:00
parent 89d905b482
commit 194b7f50b4
2 changed files with 12 additions and 12 deletions

View File

@@ -1,11 +1,11 @@
//@flow //@flow
import React from "react"; import React from "react";
import Button, { type ButtonProps } from "./Button"; import Button, { type ButtonProps } from "./Button";
class AddButton extends React.Component<ButtonProps> { class AddButton extends React.Component<ButtonProps> {
render() { render() {
return <Button color="default" {...this.props} />; return <Button color="default" icon="plus" {...this.props} />;
} }
} }
export default AddButton; export default AddButton;

View File

@@ -4,7 +4,7 @@ import Button, { type ButtonProps } from "./Button";
class DeleteButton extends React.Component<ButtonProps> { class DeleteButton extends React.Component<ButtonProps> {
render() { render() {
return <Button color="warning" {...this.props} />; return <Button color="warning" icon="times" {...this.props} />;
} }
} }