From ffa07db3ca40e24aeb99a936f02244c797eafc9e Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 3 Dec 2019 10:56:55 +0000 Subject: [PATCH] Ran: prettier --write "src/**/*.tsx" on the new code Signed-off-by: DL6ER --- src/components/list/ListPage.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/list/ListPage.tsx b/src/components/list/ListPage.tsx index 6d95d1a..5f6ea5a 100644 --- a/src/components/list/ListPage.tsx +++ b/src/components/list/ListPage.tsx @@ -67,7 +67,13 @@ export class ListPage extends Component< this.addHandler = makeCancelable(this.props.onAdd(domain)); this.addHandler.promise .then(() => { - const item = {domain: domain, date_added: 0, date_modified: 0, enabled: false, comment: ""}; + const item = { + domain: domain, + date_added: 0, + date_modified: 0, + enabled: false, + comment: "" + }; this.onAdded(item); }) .catch(ignoreCancel) @@ -95,7 +101,7 @@ export class ListPage extends Component< onAdded = (domain: ApiDomainListItem) => this.setState(prevState => ({ domains: [...prevState.domains, domain], - message: this.props.t("Successfully added {{domain}}", { domain}), + message: this.props.t("Successfully added {{domain}}", { domain }), messageType: "success" }));