Skip to content

Commit dbd6975

Browse files
committed
Removed unused imports/packages and some minor description changes
1 parent 558e357 commit dbd6975

2 files changed

Lines changed: 3 additions & 17 deletions

File tree

Eplant/views/NavigatorViewer/NavigatorView.tsx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
import {
2-
useCallback,
3-
useContext,
4-
useEffect,
5-
useMemo,
6-
useRef,
7-
useState,
8-
} from 'react'
9-
import React from 'react'
1+
import { useContext, useEffect, useMemo, useRef, useState } from 'react'
102
import * as d3 from 'd3'
113

124
import { useConfig } from '@eplant/config'
@@ -291,7 +283,7 @@ function newickToD3(
291283
* @param metadata - Metadata associated with the node
292284
* @param isPrimaryGene - Whether this node represents the primary gene being analyzed
293285
* @param themeColors - colouring for the metadata to match ePlant
294-
* @param isHighestY - have we hit the node with the highest Y coordinate
286+
* @param isHighestNode - have we hit the node with the highest Y coordinate
295287
*/
296288
interface MetadataVisualizationsProps {
297289
x: number
@@ -339,7 +331,7 @@ const calculateDimensions = (leafCount: number = 0) => {
339331
* Component for rendering metadata visualizations next to tree nodes
340332
* Displays expression similarity and sequence similarity using color-coded bars
341333
*
342-
* @param props - Component properties
334+
* @param MetadataVisualizationsProps - Component properties
343335
* @returns JSX element containing metadata visualizations
344336
*/
345337
const MetadataVisualizations = ({
@@ -700,7 +692,6 @@ export const NavigatorViewObject = () => {
700692
const { switchViewAndGene } = useViewSwitch()
701693
const { userViews } = useConfig()
702694
const [speciesList] = useSpecies()
703-
const speciesAPI = speciesList.length ? speciesList[0] : undefined
704695

705696
/** Initialize dimensions with default calculation */
706697
const [dimensions, setDimensions] = useState(calculateDimensions())
@@ -755,7 +746,6 @@ export const NavigatorViewObject = () => {
755746

756747
/** Keep track of current gene to detect changes */
757748
const prevGeneRef = useRef<string>(primaryGene)
758-
const prevTreeDataRef = useRef<any>(null)
759749

760750
/** Use the custom hook for data fetching */
761751
const { data: treeData, error, isLoading } = useGeneData(apiUrl)

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,8 @@
4545
"lodash": "^4.17.21",
4646
"newick": "^2.0.0",
4747
"newick-js": "^1.2.1",
48-
"phylotree": "^0.1.6",
4948
"react": "^18.3.1",
50-
"react-d3-tree": "^3.6.2",
5149
"react-dom": "^18.2.0",
52-
"react-helmet": "^6.1.0",
5350
"react-query": "^3.39.3",
5451
"react-router-dom": "^6.16.0",
5552
"react-window": "^1.8.9"
@@ -66,7 +63,6 @@
6663
"@types/lodash": "^4.14.199",
6764
"@types/react": "^18.3.12",
6865
"@types/react-dom": "^18.3.1",
69-
"@types/react-helmet": "^6.1.11",
7066
"@types/react-window": "^1.8.6",
7167
"@typescript-eslint/eslint-plugin": "^6.7.3",
7268
"@typescript-eslint/parser": "^6.0.0",

0 commit comments

Comments
 (0)