Rebuild the vault as a lensed orrery with an inbound capture meteor
This commit is contained in:
@@ -30,6 +30,7 @@ export default function App() {
|
||||
const [selectedSnap, setSelectedSnap] = useState<string | null>(null);
|
||||
const [pairing, setPairing] = useState<{ code: string; expires_at: string } | null>(null);
|
||||
const [galaxyFlowing, setGalaxyFlowing] = useState(true);
|
||||
const [capturePulse, setCapturePulse] = useState(0);
|
||||
const qc = useQueryClient();
|
||||
|
||||
const health = useQuery({
|
||||
@@ -88,6 +89,7 @@ export default function App() {
|
||||
flowing={galaxyFlowing}
|
||||
onToggleFlow={() => setGalaxyFlowing((f) => !f)}
|
||||
capturing={capturing || capture.isPending}
|
||||
capturePulse={capturePulse}
|
||||
selectedSnapshotId={selectedSnap}
|
||||
onSelect={(id) => setSelectedSnap(id)}
|
||||
onSelectOrbit={() => {
|
||||
@@ -116,7 +118,10 @@ export default function App() {
|
||||
disabled={capture.isPending}
|
||||
onClick={() => {
|
||||
if (!(orbits.data?.length ?? 0)) setMode("orbits");
|
||||
else capture.mutate();
|
||||
else {
|
||||
setCapturePulse((n) => n + 1);
|
||||
capture.mutate();
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user