Skip to content

Commit

Permalink
Update names
Browse files Browse the repository at this point in the history
  • Loading branch information
aganders3 committed Apr 2, 2024
1 parent 01d9a41 commit 3fd0536
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion __tests__/main.test.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down
8 changes: 4 additions & 4 deletions src/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -203,7 +203,7 @@ export default function App() {
"& .MuiDrawer-paper": { width: drawerWidth, boxSizing: "border-box", padding: "2em" },
}}
>
<DataControls
<TrackControls
dataUrl={dataUrl}
initialDataUrl={initialViewerState.dataUrl}
trackManager={trackManager}
Expand Down
2 changes: 1 addition & 1 deletion src/components/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
import { StyledEngineProvider, ThemeProvider } from "@mui/material/styles";
import { defaultTheme } from "@czi-sds/components";

import App from "@/components/app.tsx";
import App from "@/components/App.tsx";
import "@/css/index.css";

const domNode = document.getElementById("app")!;
Expand Down

0 comments on commit 3fd0536

Please sign in to comment.