aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search/NaviconButton.tsx
diff options
context:
space:
mode:
authorMonika <monika_hedman@brown.edu>2019-06-25 12:38:51 -0400
committerMonika <monika_hedman@brown.edu>2019-06-25 12:38:51 -0400
commitb954eeb57c1ba7a459d85ca7f98855e1b4134267 (patch)
treedea7c5d33ac622c83105f2bf683273374f8e9199 /src/client/views/search/NaviconButton.tsx
parent469b070c1c0f5a9d08e7824a4ce430b84f3fcce5 (diff)
lots of clean up (css & variables)
Diffstat (limited to 'src/client/views/search/NaviconButton.tsx')
-rw-r--r--src/client/views/search/NaviconButton.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/views/search/NaviconButton.tsx b/src/client/views/search/NaviconButton.tsx
index e319b945a..3fa36b163 100644
--- a/src/client/views/search/NaviconButton.tsx
+++ b/src/client/views/search/NaviconButton.tsx
@@ -10,14 +10,14 @@ export interface NaviconProps{
export class NaviconButton extends React.Component<NaviconProps> {
- @observable ref: React.RefObject<HTMLAnchorElement> = React.createRef();
+ @observable private _ref: React.RefObject<HTMLAnchorElement> = React.createRef();
componentDidMount = () => {
let that = this;
- if(this.ref.current){this.ref.current.addEventListener("click", function(e) {
+ if(this._ref.current){this._ref.current.addEventListener("click", function(e) {
e.preventDefault();
- if(that.ref.current){
- that.ref.current.classList.toggle('active');
+ if(that._ref.current){
+ that._ref.current.classList.toggle('active');
return false;
}
});}
@@ -25,7 +25,7 @@ export class NaviconButton extends React.Component<NaviconProps> {
render() {
return (
- <a id="hamburger-icon" href="#" ref = {this.ref} title="Menu">
+ <a id="hamburger-icon" href="#" ref = {this._ref} title="Menu">
<span className="line line-1"></span>
<span className="line line-2"></span>
<span className="line line-3"></span>