Move Button to right side (and remove doubled note)

This commit is contained in:
Florian Scholdei
2019-11-20 16:14:50 +01:00
parent d962265d8d
commit a04e05bf9b
27 changed files with 69 additions and 104 deletions

View File

@@ -1,7 +1,7 @@
import React, { MouseEvent } from "react";
import { AddButton } from "../buttons";
import InputField from "./InputField";
import Level from "../layout/Level";
import { AddButton } from "../buttons";
type Props = {
addEntry: (p: string) => void;
@@ -48,10 +48,14 @@ class AddEntryToTableField extends React.Component<Props, State> {
disabled={disabled}
helpText={helpText}
/>
<AddButton
label={buttonLabel}
action={this.addButtonClicked}
disabled={disabled || this.state.entryToAdd === "" || !this.isValid()}
<Level
right={
<AddButton
label={buttonLabel}
action={this.addButtonClicked}
disabled={disabled || this.state.entryToAdd === "" || !this.isValid()}
/>
}
/>
</>
);