Skip to content

Commit

Permalink
fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
prabh-t committed Sep 26, 2024
1 parent 56db308 commit 7d2c858
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/ui/components/common/ShareLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ interface ShareLinkProps {
title: string
}

/*
enum ShareType {
Link, Download, Annotation
}
*/

export const ShareLink = (props: {url: string, linkText?: string}) => {
const state = useContext(AppContext)
Expand Down
2 changes: 1 addition & 1 deletion src/ui/components/drawer/SideDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const SideDrawer = () => {
return () => {
window.removeEventListener('keydown', handleEsc);
};
}, []);
}, [closeDrawer]);

return (
<div>
Expand Down
1 change: 0 additions & 1 deletion src/ui/modal/LegendModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, {useState, useCallback, useRef, useContext} from 'react'
import { v1 as uuidv1 } from 'uuid';
import Button from '../elements/form/Button'
import Modal from './Modal'
import useOnClickOutside from '../../hooks/useOnClickOutside'
import AnnotationLegend from './AnnotationLegend'
Expand Down
3 changes: 0 additions & 3 deletions src/ui/pages/result/ResultListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ function ResultListPageContent() {
setResults([]);
}

const shareUrl = "http://www.ebi.ac.uk/ProtVar"
const title = "ProtVar results"

return <div className="container">

<div>
Expand Down
2 changes: 1 addition & 1 deletion src/ui/pages/result/ResultPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ response.data.content.messages?.forEach(message => {
}).finally(() => {
setLoading(false)
})
}, [viewedRecord, location])
}, [viewedRecord, location, title])


useEffect(() => {
Expand Down

0 comments on commit 7d2c858

Please sign in to comment.