mirror of
https://github.com/gosticks/web.git
synced 2026-08-15 05:30:22 +00:00
Ran: prettier --write "src/**/*.tsx" on the new code
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -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"
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user