Skip to content

Commit

Permalink
feat(SPV-1063): broken page
Browse files Browse the repository at this point in the history
  • Loading branch information
swierzbicki committed Sep 26, 2024
1 parent 4bfacdb commit 7d233dd
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/routes/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ import {
ModeToggle,
RadioGroup,
RadioGroupItem,
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
Toaster,
} from '@/components';
import { Role, TRole, LoginType, useAuth, useSpvWalletClient } from '@/contexts';
import { LoginType, Role, TRole, useAuth, useSpvWalletClient } from '@/contexts';

import { createClient, errorWrapper, getShortXprv } from '@/utils';
import { useConfig } from '@4chain-ag/react-configuration';
Expand Down Expand Up @@ -162,26 +157,6 @@ export function LoginForm() {
<CardTitle className="text-2xl">Login</CardTitle>
</CardHeader>
<CardContent className="grid">
<FormField
control={form.control}
name="role"
render={({ field: { onChange, value } }) => (
<FormItem>
<FormLabel>Role</FormLabel>
<Select onValueChange={onChange} defaultValue={value}>
<FormControl>
<SelectTrigger className="w-full">
<SelectValue placeholder="Select a role" defaultValue={value} />
</SelectTrigger>
</FormControl>
<SelectContent defaultValue={value}>
<SelectItem value={Role.Admin}>Admin</SelectItem>
<SelectItem value={Role.User}>User</SelectItem>
</SelectContent>
</Select>
</FormItem>
)}
/>
{currentRole === Role.User && (
<FormField
control={form.control}
Expand Down

0 comments on commit 7d233dd

Please sign in to comment.