From c341a4d61e4e75be9d4c28593c4b3a6d38ceefac Mon Sep 17 00:00:00 2001 From: Peter Bull Hove Date: Tue, 2 Apr 2024 15:41:40 +0200 Subject: [PATCH] refactor: move --- web/src/Components/Bridging/BridgeContainer.tsx | 4 ++-- web/src/Components/Bridging/{ => Graphs}/BridgeGraph.tsx | 6 +++--- .../Components/Bridging/{ => Graphs}/CumulativeGraph.tsx | 4 ++-- .../Components/Bridging/{ => Graphs}/DistributionGraph.tsx | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) rename web/src/Components/Bridging/{ => Graphs}/BridgeGraph.tsx (95%) rename web/src/Components/Bridging/{ => Graphs}/CumulativeGraph.tsx (82%) rename web/src/Components/Bridging/{ => Graphs}/DistributionGraph.tsx (84%) diff --git a/web/src/Components/Bridging/BridgeContainer.tsx b/web/src/Components/Bridging/BridgeContainer.tsx index 70b542a..98ef4a5 100644 --- a/web/src/Components/Bridging/BridgeContainer.tsx +++ b/web/src/Components/Bridging/BridgeContainer.tsx @@ -5,8 +5,8 @@ import { AuthContext } from 'react-oauth2-code-pkce' import { ErrorToast } from '../Common/Toast' import InputContainer from './InputContainer' import { findGraphData } from '../../Utils' -import CumulativeGraph from './CumulativeGraph' -import DistributionGraph from './DistributionGraph' +import CumulativeGraph from './Graphs/CumulativeGraph' +import DistributionGraph from './Graphs/DistributionGraph' export default ({ bridges, mode, setMode, bridgeValue, setValue }) => { const [sizeFractions, setSizeFractions] = useState([]) diff --git a/web/src/Components/Bridging/BridgeGraph.tsx b/web/src/Components/Bridging/Graphs/BridgeGraph.tsx similarity index 95% rename from web/src/Components/Bridging/BridgeGraph.tsx rename to web/src/Components/Bridging/Graphs/BridgeGraph.tsx index 38a96b7..40be3af 100644 --- a/web/src/Components/Bridging/BridgeGraph.tsx +++ b/web/src/Components/Bridging/Graphs/BridgeGraph.tsx @@ -1,8 +1,8 @@ import React, { useContext, useEffect, useState } from 'react' import { Area, AreaChart, CartesianGrid, Legend, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts' -import { ParticleSizeContext } from '../../Context' -import { findGraphData } from '../../Utils' -import { graphColors } from './styles' +import { ParticleSizeContext } from '../../../Context' +import { findGraphData } from '../../../Utils' +import { graphColors } from '../styles' export function BridgeGraph({ graphData, sizeFractions, bridges }) { const [particleFromPercentage, setParticleFromPercentage] = useState('') diff --git a/web/src/Components/Bridging/CumulativeGraph.tsx b/web/src/Components/Bridging/Graphs/CumulativeGraph.tsx similarity index 82% rename from web/src/Components/Bridging/CumulativeGraph.tsx rename to web/src/Components/Bridging/Graphs/CumulativeGraph.tsx index d4ae29c..51852bc 100644 --- a/web/src/Components/Bridging/CumulativeGraph.tsx +++ b/web/src/Components/Bridging/Graphs/CumulativeGraph.tsx @@ -1,6 +1,6 @@ import React, { useContext, useEffect, useState } from 'react' -import { ParticleSizeContext } from '../../Context' -import { findGraphData } from '../../Utils' +import { ParticleSizeContext } from '../../../Context' +import { findGraphData } from '../../../Utils' import BridgeGraph from './BridgeGraph' export function CumulativeGraph({ bridges, sizeFractions }) { diff --git a/web/src/Components/Bridging/DistributionGraph.tsx b/web/src/Components/Bridging/Graphs/DistributionGraph.tsx similarity index 84% rename from web/src/Components/Bridging/DistributionGraph.tsx rename to web/src/Components/Bridging/Graphs/DistributionGraph.tsx index 6564a33..bdc8780 100644 --- a/web/src/Components/Bridging/DistributionGraph.tsx +++ b/web/src/Components/Bridging/Graphs/DistributionGraph.tsx @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react' -import { findGraphData } from '../../Utils' -import { differentiateArrayObjects } from './utils' +import { findGraphData } from '../../../Utils' +import { differentiateArrayObjects } from '../utils' import BridgeGraph from './BridgeGraph' export function ParticleSizeDistributionGraph({ bridges, sizeFractions }) {