Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Update index.tsx (#1021)

Ameer Al Ashhabc35886f0c92b
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
index aae949445..1079ca18f 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
@@ -423,28 +423,30 @@ function Page() {
name="Area"
/>
</div>
- <div class="space-y-2">
- <CameraSelect
- disabled={cameras.isPending}
- options={cameras.data ?? []}
- value={options.camera() ?? null}
- onChange={(c) => {
- if (!c) setCamera.mutate(null);
- else if (c.model_id) setCamera.mutate({ ModelID: c.model_id });
- else setCamera.mutate({ DeviceID: c.device_id });
- }}
- />
- <MicrophoneSelect
- disabled={mics.isPending}
- options={mics.isPending ? [] : (mics.data ?? [])}
- // this prevents options.micName() from suspending on initial load
- value={
- mics.isPending ? rawOptions.micName : (options.micName() ?? null)
- }
- onChange={(v) => setMicInput.mutate(v)}
- />
- <SystemAudio />
- </div>
+ <Show when={!signIn.isPending}>
+ <div class="space-y-2">
+ <CameraSelect
+ disabled={cameras.isPending}
+ options={cameras.data ?? []}
+ value={options.camera() ?? null}
+ onChange={(c) => {
+ if (!c) setCamera.mutate(null);
+ else if (c.model_id) setCamera.mutate({ ModelID: c.model_id });
+ else setCamera.mutate({ DeviceID: c.device_id });
+ }}
+ />
+ <MicrophoneSelect
+ disabled={mics.isPending}
+ options={mics.isPending ? [] : (mics.data ?? [])}
+ // this prevents options.micName() from suspending on initial load
+ value={
+ mics.isPending ? rawOptions.micName : (options.micName() ?? null)
+ }
+ onChange={(v) => setMicInput.mutate(v)}
+ />
+ <SystemAudio />
+ </div>
+ </Show>
</div>
);
}