-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* show tip when 0 tracks are on the canvas * Add files * Rename numCells to numSelectedCells. Use numSelectedCells rather than canvas.tracks
- Loading branch information
Showing
5 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Callout } from "@czi-sds/components"; | ||
|
||
export default function ControlInstructions() { | ||
return ( | ||
<Callout title="Select Cells" intent="info" sx={{ width: "auto" }}> | ||
Hold shift + click and drag on the canvas to select cell points | ||
</Callout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { TrackManager } from "@/lib/TrackManager"; | ||
import TrackControls from "./TrackControls"; | ||
import ControlInstructions from "./ControlInstructions"; | ||
|
||
interface LeftSidebarWrapperProps { | ||
hasTracks: boolean; | ||
trackManager: TrackManager | null; | ||
trackHighlightLength: number; | ||
showTracks: boolean; | ||
setShowTracks: (showTracks: boolean) => void; | ||
showTrackHighlights: boolean; | ||
setShowTrackHighlights: (showTrackHighlights: boolean) => void; | ||
setTrackHighlightLength: (trackHighlightLength: number) => void; | ||
} | ||
|
||
export default function LeftSidebarWrapper({ | ||
hasTracks, | ||
trackManager, | ||
trackHighlightLength, | ||
showTracks, | ||
setShowTracks, | ||
showTrackHighlights, | ||
setShowTrackHighlights, | ||
setTrackHighlightLength, | ||
}: LeftSidebarWrapperProps) { | ||
return ( | ||
<> | ||
{hasTracks ? ( | ||
<TrackControls | ||
trackManager={trackManager} | ||
trackHighlightLength={trackHighlightLength} | ||
showTracks={showTracks} | ||
setShowTracks={setShowTracks} | ||
showTrackHighlights={showTrackHighlights} | ||
setShowTrackHighlights={setShowTrackHighlights} | ||
setTrackHighlightLength={setTrackHighlightLength} | ||
/> | ||
) : ( | ||
<ControlInstructions /> | ||
)} | ||
</> | ||
); | ||
} |
File renamed without changes.