aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/linking/LinkRelationshipSearch.tsx
diff options
context:
space:
mode:
authordinhanhtruong <70963346+dinhanhtruong@users.noreply.github.com>2021-08-30 22:37:59 -0400
committerdinhanhtruong <70963346+dinhanhtruong@users.noreply.github.com>2021-08-30 22:37:59 -0400
commit26e265c6fc4950b859724aa2c0fbe6a028a56bfc (patch)
treef8171faa668cc311cd3010e491e291ecc6be460b /src/client/views/linking/LinkRelationshipSearch.tsx
parent2df1a0c0cc11c0dbcebf2a53e804cf8ac28db346 (diff)
parent2d2e027f11253834a337680bbfd1ac549bb2a1f0 (diff)
Merge branch 'master' into linking-anh
Diffstat (limited to 'src/client/views/linking/LinkRelationshipSearch.tsx')
-rw-r--r--src/client/views/linking/LinkRelationshipSearch.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/views/linking/LinkRelationshipSearch.tsx b/src/client/views/linking/LinkRelationshipSearch.tsx
index 8f83f0e6e..53da880e4 100644
--- a/src/client/views/linking/LinkRelationshipSearch.tsx
+++ b/src/client/views/linking/LinkRelationshipSearch.tsx
@@ -15,7 +15,7 @@ export class LinkRelationshipSearch extends React.Component<LinkRelationshipSear
handleResultClick = (e: React.MouseEvent) => {
const relationship = (e.target as HTMLParagraphElement).textContent;
if (relationship) {
- this.props.handleRelationshipSearchChange(relationship)
+ this.props.handleRelationshipSearchChange(relationship);
}
}
@@ -31,8 +31,8 @@ export class LinkRelationshipSearch extends React.Component<LinkRelationshipSear
* Render an empty div to increase the height of LinkEditor to accommodate 2+ results
*/
emptyDiv = () => {
- if (this.props.results && this.props.results.length > 2 && this.props.display == "block") {
- return <div style={{ height: "50px" }}></div>
+ if (this.props.results && this.props.results.length > 2 && this.props.display === "block") {
+ return <div style={{ height: "50px" }} />;
}
}
@@ -47,9 +47,9 @@ export class LinkRelationshipSearch extends React.Component<LinkRelationshipSear
{ // return a dropdown of relationship results if there exist results
this.props.results
? this.props.results.map(result => {
- return (<p key={result} onClick={this.handleResultClick}>
+ return <p key={result} onClick={this.handleResultClick}>
{result}
- </p>)
+ </p>;
})
: <p>No matching relationships</p>
}
@@ -58,6 +58,6 @@ export class LinkRelationshipSearch extends React.Component<LinkRelationshipSear
{/*Render an empty div to increase the height of LinkEditor to accommodate 2+ results */}
{this.emptyDiv()}
</div>
- )
+ );
}
} \ No newline at end of file