Skip to content

Commit

Permalink
[Session String Converter] Fix a small UI bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv committed Mar 22, 2024
1 parent c3c97d2 commit cddfdf8
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions islands/SessionStringConverter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,33 +198,34 @@ export function SessionStringConverter() {
/>
{!inputValid.value && <Caption>Choose different formats.</Caption>}
</Label>
<div class="w-full border-t border-border"></div>
<Label>
{needsUserDetails.value && (
<>
<Caption>Account Type</Caption>
<Select
value={accountType.value}
values={["Bot", "User"]}
onChange={(v) => accountType.value = v}
/>
<Input
placeholder="User ID"
value={userId.value}
onChange={(e) => userId.value = e.currentTarget.value}
/>
</>
)}
{needsApiId.value && (
<Input
placeholder="API ID"
value={apiId.value}
onChange={(e) => apiId.value = e.currentTarget.value}
/>
)}
</Label>
{inputValid.value && (
<>
<div class="w-full border-t border-border"></div>
<Label>
{needsUserDetails.value && (
<>
<Caption>Account Type</Caption>
<Select
value={accountType.value}
values={["Bot", "User"]}
onChange={(v) => accountType.value = v}
/>
<Input
placeholder="User ID"
value={userId.value}
onChange={(e) => userId.value = e.currentTarget.value}
/>
</>
)}
{needsApiId.value && (
<Input
placeholder="API ID"
value={apiId.value}
onChange={(e) => apiId.value = e.currentTarget.value}
/>
)}
</Label>

<Label>
<Caption>Input</Caption>
<Input
Expand Down

0 comments on commit cddfdf8

Please sign in to comment.