Skip to content

Commit

Permalink
Discard changes to apps/desktop/src/routes/(window-chrome)/(main).tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsEeleeya authored Nov 19, 2024
1 parent 8addab0 commit 9e63234
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions apps/desktop/src/routes/(window-chrome)/(main).tsx
Original file line number Diff line number Diff line change
Expand Up @@ -597,16 +597,16 @@ function TargetSelect<T extends { id: number; name: string }>(props: {
as={
props.options.length <= 1
? (p) => (
<button
onClick={() => {
props.onChange(props.options[0]);
}}
data-selected={props.selected}
class={p.class}
>
<span class="truncate">{props.placeholder}</span>
</button>
)
<button
onClick={() => {
props.onChange(props.options[0]);
}}
data-selected={props.selected}
class={p.class}
>
<span class="truncate">{props.placeholder}</span>
</button>
)
: undefined
}
class="flex-1 text-gray-400 py-1 z-10 data-[selected='true']:text-gray-500 peer focus:outline-none transition-colors duration-100 w-full text-nowrap overflow-hidden px-2 flex gap-2 items-center justify-center"
Expand Down Expand Up @@ -680,8 +680,8 @@ function TargetSelectInfoPill<T>(props: {
{!props.permissionGranted
? "Request Permission"
: props.value !== null
? "On"
: "Off"}
? "On"
: "Off"}
</button>
);
}
Expand Down

0 comments on commit 9e63234

Please sign in to comment.