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 764cd2b
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions islands/SessionStringConverter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,32 +199,33 @@ 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 && (
<>
<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 764cd2b

Please sign in to comment.