Skip to content

Commit

Permalink
remove some unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
haihan-lin committed Sep 22, 2021
1 parent 2feb404 commit 689e424
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Snackbar, TextField } from "@material-ui/core"
import { TextField } from "@material-ui/core"
import { observer } from "mobx-react"
import { FC, useState, useContext } from "react"
import Store from "../../../Interfaces/Store";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { observer } from "mobx-react"
import { FC, useCallback, useContext } from "react"
import { CaseScaleGenerator } from "../../../HelperFunctions/Scales"
import Store from "../../../Interfaces/Store"
import { CaseRectWidth, DifferentialSquareWidth, largeFontSize, postop_color, preop_color, regularFontSize } from "../../../Presets/Constants"
import { CaseRectWidth, DifferentialSquareWidth, largeFontSize, postop_color, preop_color } from "../../../Presets/Constants"

type Props = {
caseCount: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC, useCallback, useContext } from "react";
import { scaleLinear, format, interpolateGreys, scaleBand } from "d3";
import { observer } from "mobx-react";
import { Basic_Gray, ExtraPairWidth, greyScaleRange, largeFontSize, regularFontSize } from "../../../../Presets/Constants";
import { Basic_Gray, ExtraPairWidth, greyScaleRange, largeFontSize } from "../../../../Presets/Constants";
import { Tooltip } from "@material-ui/core";
import Store from "../../../../Interfaces/Store";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container, FormControl, FormHelperText, Grid, IconButton, Menu, MenuItem, Switch, Tooltip } from "@material-ui/core";
import { Container, FormControl, IconButton, Menu, MenuItem, Switch, Tooltip } from "@material-ui/core";
import axios from "axios";
import { sum } from "d3";
import { observer } from "mobx-react";
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Components/Charts/HeatMap/SingleHeatRow.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { format, interpolateGreys, interpolateReds, ScaleBand, scaleBand } from "d3";
import { format, interpolateGreys, interpolateReds, ScaleBand } from "d3";
import { observer } from "mobx-react";
import { FC, useCallback, useContext } from "react";
import { HeatmapColorScale, HeatmapGreyScale, ValueScaleGeneratorFromDomainRange } from "../../../HelperFunctions/Scales";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container, Grid } from "@material-ui/core";
import { Container } from "@material-ui/core";
import { observer } from "mobx-react";
import { FC, useContext, useLayoutEffect, useRef, useState } from "react";
import { DataContext } from "../../../App";
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/Components/Utilities/DetailView/DetailView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container, Divider } from "@material-ui/core";
import { Divider } from "@material-ui/core";
import { observer } from "mobx-react";
import { FC, useContext } from "react";
import Store from "../../../Interfaces/Store";
Expand All @@ -9,8 +9,7 @@ import CaseList from "./CaseList";
const DetailView: FC = () => {

const store = useContext(Store);
const { currentBrushedPatientGroup } = store.state
const styles = useStyles();
const { currentBrushedPatientGroup } = store.state;

return (
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Title, useStyles } from "../../../Presets/StyledComponents";
const CurrentSelected: FC = () => {
const styles = useStyles();
const store = useContext(Store);
const { currentBrushedPatientGroup, currentSelectSet, currentOutputFilterSet, currentSelectPatientGroup } = store.state
const { currentBrushedPatientGroup, currentSelectSet } = store.state

return (
<Grid item className={styles.gridWidth}>
Expand Down

0 comments on commit 689e424

Please sign in to comment.