From 3fd0536413d00aea506934814a90873f3e0ea0a4 Mon Sep 17 00:00:00 2001 From: Ashley Anderson Date: Tue, 2 Apr 2024 10:22:29 -0400 Subject: [PATCH] Update names --- __tests__/main.test.tsx | 2 +- src/components/{dataControls.tsx => TrackControls.tsx} | 4 ++-- src/components/app.tsx | 8 ++++---- src/components/main.tsx | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) rename src/components/{dataControls.tsx => TrackControls.tsx} (96%) diff --git a/__tests__/main.test.tsx b/__tests__/main.test.tsx index 0a485c38..3006932b 100644 --- a/__tests__/main.test.tsx +++ b/__tests__/main.test.tsx @@ -1,7 +1,7 @@ import { expect, test } from "vitest"; import { PointCanvas } from "../src/lib/PointCanvas.ts"; -import Scene from "../src/components/scene"; +import Scene from "../src/components/Scene"; import React from "react"; import { render } from "@testing-library/react"; diff --git a/src/components/dataControls.tsx b/src/components/TrackControls.tsx similarity index 96% rename from src/components/dataControls.tsx rename to src/components/TrackControls.tsx index 6346bec6..806de997 100644 --- a/src/components/dataControls.tsx +++ b/src/components/TrackControls.tsx @@ -2,7 +2,7 @@ import { TrackManager } from "@/lib/TrackManager"; import { Button, ButtonIcon, InputSlider, InputText } from "@czi-sds/components"; import { Stack } from "@mui/material"; -interface DataControlsProps { +interface TrackControlsProps { dataUrl: string; initialDataUrl: string; trackManager: TrackManager | null; @@ -14,7 +14,7 @@ interface DataControlsProps { clearTracks: () => void; } -export default function DataControls(props: DataControlsProps) { +export default function TrackControls(props: TrackControlsProps) { const numTimes = props.trackManager?.points.shape[0] ?? 0; const trackLengthPct = numTimes ? (props.trackHighlightLength / 2 / numTimes) * 100 : 0; diff --git a/src/components/app.tsx b/src/components/app.tsx index abfeba6c..a974da2b 100644 --- a/src/components/app.tsx +++ b/src/components/app.tsx @@ -3,9 +3,9 @@ import "@/css/app.css"; import { Box, Drawer } from "@mui/material"; -import Scene from "@/components/scene.tsx"; -import DataControls from "@/components/dataControls.tsx"; -import PlaybackControls from "@/components/playbackControls.tsx"; +import Scene from "@/components/Scene.tsx"; +import TrackControls from "@/components/TrackControls.tsx"; +import PlaybackControls from "@/components/PlaybackControls.tsx"; import useSelectionBox from "@/hooks/useSelectionBox"; @@ -203,7 +203,7 @@ export default function App() { "& .MuiDrawer-paper": { width: drawerWidth, boxSizing: "border-box", padding: "2em" }, }} > -