aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search/IconButton.tsx
diff options
context:
space:
mode:
authorMonika <monika_hedman@brown.edu>2019-06-25 16:03:16 -0400
committerMonika <monika_hedman@brown.edu>2019-06-25 16:03:16 -0400
commit70023ce43fe52264ce5c6ce43e9124c5f5798090 (patch)
tree325f610647479154f9723f292f51ebc7351d2bad /src/client/views/search/IconButton.tsx
parentb954eeb57c1ba7a459d85ca7f98855e1b4134267 (diff)
things are not good
Diffstat (limited to 'src/client/views/search/IconButton.tsx')
-rw-r--r--src/client/views/search/IconButton.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/search/IconButton.tsx b/src/client/views/search/IconButton.tsx
index c40bb587f..23ab42de0 100644
--- a/src/client/views/search/IconButton.tsx
+++ b/src/client/views/search/IconButton.tsx
@@ -11,7 +11,7 @@ import '../globalCssVariables.scss';
import * as _ from "lodash";
import { IconBar } from './IconBar';
import { props } from 'bluebird';
-import { SearchBox } from './SearchBox';
+import { FilterBox } from './FilterBox';
import { Search } from '../../../server/Search';
library.add(faSearch);
@@ -33,7 +33,7 @@ interface IconButtonProps {
@observer
export class IconButton extends React.Component<IconButtonProps>{
- @observable private _isSelected: boolean = SearchBox.Instance.getIcons().indexOf(this.props.type) !== -1;
+ @observable private _isSelected: boolean = FilterBox.Instance.getIcons().indexOf(this.props.type) !== -1;
@observable private _hover = false;
private _resetReaction?: IReactionDisposer;
private _selectAllReaction?: IReactionDisposer;
@@ -107,7 +107,7 @@ export class IconButton extends React.Component<IconButtonProps>{
@action.bound
onClick = () => {
- let newList: string[] = SearchBox.Instance.getIcons();
+ let newList: string[] = FilterBox.Instance.getIcons();
if (!this._isSelected) {
this._isSelected = true;
@@ -118,7 +118,7 @@ export class IconButton extends React.Component<IconButtonProps>{
_.pull(newList, this.props.type);
}
- SearchBox.Instance.updateIcon(newList);
+ FilterBox.Instance.updateIcon(newList);
}
selected = {