remove color props

This commit is contained in:
Maren Süwer
2019-01-30 15:58:55 +01:00
parent 554b24a199
commit e878fac686
2 changed files with 3 additions and 7 deletions

View File

@@ -5,8 +5,6 @@ import Button from "./Button";
type Props = {
firstlabel: string,
secondlabel: string,
firstColor: string,
secondColor: string,
firstAction?: (event: Event) => void,
secondAction?: (event: Event) => void,
firstIsSelected: boolean
@@ -15,10 +13,10 @@ type Props = {
class ButtonGroup extends React.Component<Props> {
render() {
const { firstlabel, secondlabel, firstColor, secondColor, firstAction, secondAction, firstIsSelected } = this.props;
const { firstlabel, secondlabel, firstAction, secondAction, firstIsSelected } = this.props;
let showFirstColor = firstColor;
let showSecondColor = secondColor;
let showFirstColor = "";
let showSecondColor = "";
if (firstIsSelected) {
showFirstColor += "link is-selected";

View File

@@ -47,8 +47,6 @@ class FileButtonGroup extends React.Component<Props> {
<ButtonGroup
firstlabel={sourcesLabel}
secondlabel={historyLabel}
firstColor=""
secondColor=""
firstAction={this.showSources}
secondAction={this.showHistory}
firstIsSelected={!historyIsSelected}