From 1f014295a54f1e16b8bd94da729fb0afd143f7fe Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 21 Sep 2020 23:27:44 +0900 Subject: Fix component test --- src/settings/components/form/BlacklistForm.tsx | 4 ++-- src/settings/components/ui/TextArea.tsx | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/settings') diff --git a/src/settings/components/form/BlacklistForm.tsx b/src/settings/components/form/BlacklistForm.tsx index 4d794f4..d301f2c 100644 --- a/src/settings/components/form/BlacklistForm.tsx +++ b/src/settings/components/form/BlacklistForm.tsx @@ -40,13 +40,13 @@ class BlacklistForm extends React.Component { render() { return ( <> - + {this.props.value.items.map((item, index) => { if (item.partial) { return null; } return ( - + = (props) => { - {hasError ? {props.error} : null} + {hasError ? ( + {props.error} + ) : null} ); }; -- cgit v1.2.3