aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonika <monika_hedman@brown.edu>2019-06-19 13:57:34 -0400
committerMonika <monika_hedman@brown.edu>2019-06-19 13:57:34 -0400
commit475df987dd647bb1e5202329f0d0ffc088bb66e6 (patch)
tree3a85c45459036039d92b46a1c0ed26180fb7c8b9
parent1980d7009606bef0fb52104db0856b691c12bb9e (diff)
lint errors
-rw-r--r--src/client/views/search/CheckBox.tsx6
-rw-r--r--src/client/views/search/FieldFilters.tsx2
-rw-r--r--src/client/views/search/IconBar.tsx2
-rw-r--r--src/client/views/search/IconButton.tsx38
-rw-r--r--src/client/views/search/SearchBox.tsx2
-rw-r--r--src/client/views/search/ToggleBar.tsx2
6 files changed, 26 insertions, 26 deletions
diff --git a/src/client/views/search/CheckBox.tsx b/src/client/views/search/CheckBox.tsx
index 163507ec3..26ad9d8ce 100644
--- a/src/client/views/search/CheckBox.tsx
+++ b/src/client/views/search/CheckBox.tsx
@@ -68,10 +68,10 @@ export class CheckBox extends React.Component<CheckBoxProps>{
this.props.parent.resetCounter = 0;
this.props.parent.resetCounter = false;
}
- })
+ });
}
},
- )
+ );
}
@action.bound
@@ -113,7 +113,7 @@ export class CheckBox extends React.Component<CheckBoxProps>{
</div>
<div className="checkbox-title">{this.props.title}</div>
</div>
- )
+ );
}
} \ No newline at end of file
diff --git a/src/client/views/search/FieldFilters.tsx b/src/client/views/search/FieldFilters.tsx
index 81391e73b..a7b142617 100644
--- a/src/client/views/search/FieldFilters.tsx
+++ b/src/client/views/search/FieldFilters.tsx
@@ -41,6 +41,6 @@ resetFieldFilters() {
<CheckBox numCount = {3} parent = {this} originalStatus={this.props.authorFieldStatus} updateStatus={this.props.updateAuthorStatus} title={Keys.AUTHOR} />
<CheckBox numCount = {3} parent = {this} originalStatus={this.props.dataFieldStatus} updateStatus={this.props.updateDataStatus} title={Keys.DATA} />
</div>
- )
+ );
}
} \ No newline at end of file
diff --git a/src/client/views/search/IconBar.tsx b/src/client/views/search/IconBar.tsx
index 4741359d0..2ae4af642 100644
--- a/src/client/views/search/IconBar.tsx
+++ b/src/client/views/search/IconBar.tsx
@@ -50,7 +50,7 @@ export class IconBar extends React.Component {
@action.bound
updateList(newList: string[]) {
- SearchBox.Instance.updateIcon(newList)
+ SearchBox.Instance.updateIcon(newList);
}
@action.bound
diff --git a/src/client/views/search/IconButton.tsx b/src/client/views/search/IconButton.tsx
index 1894332a1..9df285b70 100644
--- a/src/client/views/search/IconButton.tsx
+++ b/src/client/views/search/IconButton.tsx
@@ -57,10 +57,10 @@ export class IconButton extends React.Component<IconButtonProps>{
IconBar.Instance.Reset = 0;
IconBar.Instance.ResetClicked = false;
}
- })
+ });
}
},
- )
+ );
this._selectAllReaction = reaction(
() => IconBar.Instance.SelectAllClicked,
() => {
@@ -72,10 +72,10 @@ export class IconButton extends React.Component<IconButtonProps>{
IconBar.Instance.Select = 0;
IconBar.Instance.SelectAllClicked = false;
}
- })
+ });
}
},
- )
+ );
}
@action.bound
@@ -112,11 +112,11 @@ export class IconButton extends React.Component<IconButtonProps>{
if (!this.isSelected) {
this.isSelected = true;
- newList.push(this.props.type)
+ newList.push(this.props.type);
}
else {
this.isSelected = false;
- _.pull(newList, this.props.type)
+ _.pull(newList, this.props.type);
}
SearchBox.Instance.updateIcon(newList);
@@ -125,16 +125,16 @@ export class IconButton extends React.Component<IconButtonProps>{
selected = {
opacity: 1,
backgroundColor: "#c2c2c5" //$alt-accent
- }
+ };
notSelected = {
opacity: 0.6,
- }
+ };
hoverStyle = {
opacity: 1,
backgroundColor: "rgb(178, 206, 248)" //$darker-alt-accent
- }
+ };
@action.bound
public reset() {
@@ -161,25 +161,25 @@ export class IconButton extends React.Component<IconButtonProps>{
case (DocTypes.NONE):
return (<FontAwesomeIcon className="fontawesome-icon" icon={faBan} />);
case (DocTypes.AUDIO):
- return (<FontAwesomeIcon className="fontawesome-icon" icon={faMusic} />)
+ return (<FontAwesomeIcon className="fontawesome-icon" icon={faMusic} />);
case (DocTypes.COL):
- return (<FontAwesomeIcon className="fontawesome-icon" icon={faObjectGroup} />)
+ return (<FontAwesomeIcon className="fontawesome-icon" icon={faObjectGroup} />);
case (DocTypes.HIST):
- return (<FontAwesomeIcon className="fontawesome-icon" icon={faChartBar} />)
+ return (<FontAwesomeIcon className="fontawesome-icon" icon={faChartBar} />);
case (DocTypes.IMG):
- return (<FontAwesomeIcon className="fontawesome-icon" icon={faImage} />)
+ return (<FontAwesomeIcon className="fontawesome-icon" icon={faImage} />);
case (DocTypes.LINK):
- return (<FontAwesomeIcon className="fontawesome-icon" icon={faLink} />)
+ return (<FontAwesomeIcon className="fontawesome-icon" icon={faLink} />);
case (DocTypes.PDF):
- return (<FontAwesomeIcon className="fontawesome-icon" icon={faFilePdf} />)
+ return (<FontAwesomeIcon className="fontawesome-icon" icon={faFilePdf} />);
case (DocTypes.TEXT):
- return (<FontAwesomeIcon className="fontawesome-icon" icon={faStickyNote} />)
+ return (<FontAwesomeIcon className="fontawesome-icon" icon={faStickyNote} />);
case (DocTypes.VID):
- return (<FontAwesomeIcon className="fontawesome-icon" icon={faVideo} />)
+ return (<FontAwesomeIcon className="fontawesome-icon" icon={faVideo} />);
case (DocTypes.WEB):
- return (<FontAwesomeIcon className="fontawesome-icon" icon={faGlobeAsia} />)
+ return (<FontAwesomeIcon className="fontawesome-icon" icon={faGlobeAsia} />);
default:
- return (<FontAwesomeIcon className="fontawesome-icon" icon={faCaretDown} />)
+ return (<FontAwesomeIcon className="fontawesome-icon" icon={faCaretDown} />);
}
}
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx
index 4a0fe452a..86c239f30 100644
--- a/src/client/views/search/SearchBox.tsx
+++ b/src/client/views/search/SearchBox.tsx
@@ -159,7 +159,7 @@ export class SearchBox extends React.Component {
query = this.basicRequireWords(query);
}
- query = query.replace(/\s+/g, ' ').trim()
+ query = query.replace(/\s+/g, ' ').trim();
//if there is no query there should be no result
if (query === "") {
diff --git a/src/client/views/search/ToggleBar.tsx b/src/client/views/search/ToggleBar.tsx
index 0fee81e20..6f141d42a 100644
--- a/src/client/views/search/ToggleBar.tsx
+++ b/src/client/views/search/ToggleBar.tsx
@@ -78,7 +78,7 @@ export class ToggleBar extends React.Component<ToggleBarProps>{
@action.bound
public resetToggle = () => {
if (!SearchBox.Instance.getBasicWordStatus()) {
- this.forwardTimeline.play()
+ this.forwardTimeline.play();
this.forwardTimeline.reverse();
SearchBox.Instance.handleWordQueryChange();
}