Skip to content

Commit c35886f

Browse files
authored
Update index.tsx (#1021)
1 parent 49b87e6 commit c35886f

File tree

1 file changed

+24
-22
lines changed
  • apps/desktop/src/routes/(window-chrome)/new-main

1 file changed

+24
-22
lines changed

apps/desktop/src/routes/(window-chrome)/new-main/index.tsx

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -423,28 +423,30 @@ function Page() {
423423
name="Area"
424424
/>
425425
</div>
426-
<div class="space-y-2">
427-
<CameraSelect
428-
disabled={cameras.isPending}
429-
options={cameras.data ?? []}
430-
value={options.camera() ?? null}
431-
onChange={(c) => {
432-
if (!c) setCamera.mutate(null);
433-
else if (c.model_id) setCamera.mutate({ ModelID: c.model_id });
434-
else setCamera.mutate({ DeviceID: c.device_id });
435-
}}
436-
/>
437-
<MicrophoneSelect
438-
disabled={mics.isPending}
439-
options={mics.isPending ? [] : (mics.data ?? [])}
440-
// this prevents options.micName() from suspending on initial load
441-
value={
442-
mics.isPending ? rawOptions.micName : (options.micName() ?? null)
443-
}
444-
onChange={(v) => setMicInput.mutate(v)}
445-
/>
446-
<SystemAudio />
447-
</div>
426+
<Show when={!signIn.isPending}>
427+
<div class="space-y-2">
428+
<CameraSelect
429+
disabled={cameras.isPending}
430+
options={cameras.data ?? []}
431+
value={options.camera() ?? null}
432+
onChange={(c) => {
433+
if (!c) setCamera.mutate(null);
434+
else if (c.model_id) setCamera.mutate({ ModelID: c.model_id });
435+
else setCamera.mutate({ DeviceID: c.device_id });
436+
}}
437+
/>
438+
<MicrophoneSelect
439+
disabled={mics.isPending}
440+
options={mics.isPending ? [] : (mics.data ?? [])}
441+
// this prevents options.micName() from suspending on initial load
442+
value={
443+
mics.isPending ? rawOptions.micName : (options.micName() ?? null)
444+
}
445+
onChange={(v) => setMicInput.mutate(v)}
446+
/>
447+
<SystemAudio />
448+
</div>
449+
</Show>
448450
</div>
449451
);
450452
}

0 commit comments

Comments
 (0)