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 6a0f855
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 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
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/components/main.tsx"></script>
<script type="module" src="/src/components/Main.tsx"></script>
</body>
</html>
8 changes: 4 additions & 4 deletions src/components/app.tsx → 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 → 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
File renamed without changes.
File renamed without changes.
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

0 comments on commit 6a0f855

Please sign in to comment.