From 920afe8bc79113372d8f7da6d0d009cfcd76a6d8 Mon Sep 17 00:00:00 2001 From: Tobias Pickel Date: Fri, 13 Sep 2019 16:56:40 +0200 Subject: [PATCH] chore: updates for e2e testing --- src/components/common/header-menu.tsx | 5 +--- .../split-invoice/split-invoice.tsx | 24 ++++++++++--------- src/components/ui/button.tsx | 3 ++- src/components/user/edit-user-form.tsx | 9 +++++-- src/locales/en.ts | 3 +++ 5 files changed, 26 insertions(+), 18 deletions(-) diff --git a/src/components/common/header-menu.tsx b/src/components/common/header-menu.tsx index 1bbc64e6..9be5fa5a 100644 --- a/src/components/common/header-menu.tsx +++ b/src/components/common/header-menu.tsx @@ -40,10 +40,7 @@ export function HeaderMenu(): JSX.Element { activeClassName="active" to="/split-invoice" > - + )} diff --git a/src/components/transaction/split-invoice/split-invoice.tsx b/src/components/transaction/split-invoice/split-invoice.tsx index 940834cb..1e2df8ad 100644 --- a/src/components/transaction/split-invoice/split-invoice.tsx +++ b/src/components/transaction/split-invoice/split-invoice.tsx @@ -267,10 +267,7 @@ export class SplitInvoiceForm extends React.Component<{}, State> {

- +

@@ -354,13 +351,18 @@ export class SplitInvoiceForm extends React.Component<{}, State> { )}

- - - + + {text => ( + + + + )} + )} diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index f27fcf68..d171f990 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -2,8 +2,9 @@ import React from 'react'; import { withTheme, Button, AcceptIcon } from 'bricks-of-sand'; export const AcceptButton = withTheme( - ({ theme, margin, onClick, disabled, type = 'button' }: any) => ( + ({ theme, margin, onClick, disabled, type = 'button', title }: any) => (