disable form
This commit is contained in:
@@ -88,7 +88,8 @@ export default function Route({}: Route.ComponentProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Form {...form}>
|
<Form {...form}>
|
||||||
<form onSubmit={handleSubmit(onSubmit)} className="space-y-4">
|
<form onSubmit={handleSubmit(onSubmit)}>
|
||||||
|
<fieldset disabled={!!user?.rate_limit_exceeded} className="space-y-4">
|
||||||
{user?.rate_limit_exceeded && (
|
{user?.rate_limit_exceeded && (
|
||||||
<Alert variant="destructive">
|
<Alert variant="destructive">
|
||||||
<AlertCircleIcon />
|
<AlertCircleIcon />
|
||||||
@@ -135,8 +136,8 @@ export default function Route({}: Route.ComponentProps) {
|
|||||||
</FormControl>
|
</FormControl>
|
||||||
<FormLabel className="text-sm font-normal text-muted-foreground">
|
<FormLabel className="text-sm font-normal text-muted-foreground">
|
||||||
<span>
|
<span>
|
||||||
Para gerenciar os emails ou trocar o email principal, use
|
Para gerenciar os emails ou trocar o email principal,
|
||||||
as{' '}
|
use as{' '}
|
||||||
<Link
|
<Link
|
||||||
to="emails"
|
to="emails"
|
||||||
className="text-blue-400 underline hover:no-underline"
|
className="text-blue-400 underline hover:no-underline"
|
||||||
@@ -184,6 +185,7 @@ export default function Route({}: Route.ComponentProps) {
|
|||||||
</Button>
|
</Button>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</Form>
|
</Form>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user