Skip to content

Commit bdb2385

Browse files
committed
Fix lints
1 parent b8ad3da commit bdb2385

File tree

3 files changed

+94
-38
lines changed

3 files changed

+94
-38
lines changed

frontend/app/claims/declare/StartStep.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { IdCardIcon } from "@/icons/id-card";
44
import { ImageIcon } from "@/icons/image";
55
import { TableIcon } from "@/icons/table";
66
import Link from "next/link";
7-
import { useRouter } from "next/navigation";
87

98
type StartProps = {
109
handleStepForward: () => void;
@@ -15,7 +14,6 @@ function Icon({ children }: { children: React.ReactNode }) {
1514
}
1615

1716
export default function StartStep({ handleStepForward }: StartProps) {
18-
const router = useRouter();
1917
return (
2018
<div className="flex justify-center items-center h-full mt-8">
2119
<div className="flex flex-col items-center justify-center gap-9 w-[500px] h-full">
Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
1-
"use client"
1+
"use client";
22

3-
import * as React from "react"
4-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
5-
import { CheckIcon } from "lucide-react"
3+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
4+
import { CheckIcon } from "lucide-react";
5+
import * as React from "react";
66

7-
import { cn } from "@/lib/utils"
7+
import { cn } from "@/lib/utils";
88

9-
function Checkbox({
10-
className,
11-
...props
12-
}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
13-
return (
14-
<CheckboxPrimitive.Root
15-
data-slot="checkbox"
16-
className={cn(
17-
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
18-
className
19-
)}
20-
{...props}
21-
>
22-
<CheckboxPrimitive.Indicator
23-
data-slot="checkbox-indicator"
24-
className="grid place-content-center text-current transition-none"
25-
>
26-
<CheckIcon className="size-3.5" />
27-
</CheckboxPrimitive.Indicator>
28-
</CheckboxPrimitive.Root>
29-
)
9+
function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
10+
return (
11+
<CheckboxPrimitive.Root
12+
data-slot="checkbox"
13+
className={cn(
14+
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
15+
className
16+
)}
17+
{...props}
18+
>
19+
<CheckboxPrimitive.Indicator
20+
data-slot="checkbox-indicator"
21+
className="grid place-content-center text-current transition-none"
22+
>
23+
<CheckIcon className="size-3.5" />
24+
</CheckboxPrimitive.Indicator>
25+
</CheckboxPrimitive.Root>
26+
);
3027
}
3128

32-
export { Checkbox }
29+
export { Checkbox };

frontend/schema.d.ts

Lines changed: 70 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,14 @@ export interface paths {
819819
* @default ACTIVE
820820
* @enum {string}
821821
*/
822-
status: "ACTIVE" | "FILED" | "IN_PROGRESS_DISASTER" | "IN_PROGRESS_PERSONAL" | "IN_PROGRESS_BUSINESS" | "IN_PROGRESS_INSURANCE" | "IN_PROGRESS_EXPORT";
822+
status:
823+
| "ACTIVE"
824+
| "FILED"
825+
| "IN_PROGRESS_DISASTER"
826+
| "IN_PROGRESS_PERSONAL"
827+
| "IN_PROGRESS_BUSINESS"
828+
| "IN_PROGRESS_INSURANCE"
829+
| "IN_PROGRESS_EXPORT";
823830
/** Format: date-time */
824831
createdAt: string;
825832
/** Format: date-time */
@@ -2933,7 +2940,12 @@ export interface paths {
29332940
amountCents: number;
29342941
category?: string | null;
29352942
/** @enum {string} */
2936-
type: "extraneous" | "typical" | "pending" | "suggested extraneous" | "suggested typical";
2943+
type:
2944+
| "extraneous"
2945+
| "typical"
2946+
| "pending"
2947+
| "suggested extraneous"
2948+
| "suggested typical";
29372949
dateCreated: string;
29382950
lastUpdated: string;
29392951
/** Format: date-time */
@@ -3200,7 +3212,14 @@ export interface paths {
32003212
* @default ACTIVE
32013213
* @enum {string}
32023214
*/
3203-
status?: "ACTIVE" | "FILED" | "IN_PROGRESS_DISASTER" | "IN_PROGRESS_PERSONAL" | "IN_PROGRESS_BUSINESS" | "IN_PROGRESS_INSURANCE" | "IN_PROGRESS_EXPORT";
3215+
status?:
3216+
| "ACTIVE"
3217+
| "FILED"
3218+
| "IN_PROGRESS_DISASTER"
3219+
| "IN_PROGRESS_PERSONAL"
3220+
| "IN_PROGRESS_BUSINESS"
3221+
| "IN_PROGRESS_INSURANCE"
3222+
| "IN_PROGRESS_EXPORT";
32043223
name: string;
32053224
};
32063225
};
@@ -3218,7 +3237,14 @@ export interface paths {
32183237
* @default ACTIVE
32193238
* @enum {string}
32203239
*/
3221-
status: "ACTIVE" | "FILED" | "IN_PROGRESS_DISASTER" | "IN_PROGRESS_PERSONAL" | "IN_PROGRESS_BUSINESS" | "IN_PROGRESS_INSURANCE" | "IN_PROGRESS_EXPORT";
3240+
status:
3241+
| "ACTIVE"
3242+
| "FILED"
3243+
| "IN_PROGRESS_DISASTER"
3244+
| "IN_PROGRESS_PERSONAL"
3245+
| "IN_PROGRESS_BUSINESS"
3246+
| "IN_PROGRESS_INSURANCE"
3247+
| "IN_PROGRESS_EXPORT";
32223248
createdAt: string;
32233249
updatedAt?: string;
32243250
femaDisaster?: {
@@ -3341,7 +3367,14 @@ export interface paths {
33413367
* @default ACTIVE
33423368
* @enum {string}
33433369
*/
3344-
status: "ACTIVE" | "FILED" | "IN_PROGRESS_DISASTER" | "IN_PROGRESS_PERSONAL" | "IN_PROGRESS_BUSINESS" | "IN_PROGRESS_INSURANCE" | "IN_PROGRESS_EXPORT";
3370+
status:
3371+
| "ACTIVE"
3372+
| "FILED"
3373+
| "IN_PROGRESS_DISASTER"
3374+
| "IN_PROGRESS_PERSONAL"
3375+
| "IN_PROGRESS_BUSINESS"
3376+
| "IN_PROGRESS_INSURANCE"
3377+
| "IN_PROGRESS_EXPORT";
33453378
/** Format: date-time */
33463379
createdAt: string;
33473380
/** Format: date-time */
@@ -3478,7 +3511,14 @@ export interface paths {
34783511
* @default ACTIVE
34793512
* @enum {string}
34803513
*/
3481-
status: "ACTIVE" | "FILED" | "IN_PROGRESS_DISASTER" | "IN_PROGRESS_PERSONAL" | "IN_PROGRESS_BUSINESS" | "IN_PROGRESS_INSURANCE" | "IN_PROGRESS_EXPORT";
3514+
status:
3515+
| "ACTIVE"
3516+
| "FILED"
3517+
| "IN_PROGRESS_DISASTER"
3518+
| "IN_PROGRESS_PERSONAL"
3519+
| "IN_PROGRESS_BUSINESS"
3520+
| "IN_PROGRESS_INSURANCE"
3521+
| "IN_PROGRESS_EXPORT";
34823522
/** Format: date-time */
34833523
createdAt: string;
34843524
/** Format: date-time */
@@ -3659,7 +3699,14 @@ export interface paths {
36593699
content: {
36603700
"application/json": {
36613701
/** @enum {string} */
3662-
status: "ACTIVE" | "FILED" | "IN_PROGRESS_DISASTER" | "IN_PROGRESS_PERSONAL" | "IN_PROGRESS_BUSINESS" | "IN_PROGRESS_INSURANCE" | "IN_PROGRESS_EXPORT";
3702+
status:
3703+
| "ACTIVE"
3704+
| "FILED"
3705+
| "IN_PROGRESS_DISASTER"
3706+
| "IN_PROGRESS_PERSONAL"
3707+
| "IN_PROGRESS_BUSINESS"
3708+
| "IN_PROGRESS_INSURANCE"
3709+
| "IN_PROGRESS_EXPORT";
36633710
insurancePolicyId?: string;
36643711
};
36653712
};
@@ -3678,7 +3725,14 @@ export interface paths {
36783725
* @default ACTIVE
36793726
* @enum {string}
36803727
*/
3681-
status: "ACTIVE" | "FILED" | "IN_PROGRESS_DISASTER" | "IN_PROGRESS_PERSONAL" | "IN_PROGRESS_BUSINESS" | "IN_PROGRESS_INSURANCE" | "IN_PROGRESS_EXPORT";
3728+
status:
3729+
| "ACTIVE"
3730+
| "FILED"
3731+
| "IN_PROGRESS_DISASTER"
3732+
| "IN_PROGRESS_PERSONAL"
3733+
| "IN_PROGRESS_BUSINESS"
3734+
| "IN_PROGRESS_INSURANCE"
3735+
| "IN_PROGRESS_EXPORT";
36823736
/** Format: date-time */
36833737
createdAt: string;
36843738
/** Format: date-time */
@@ -6180,7 +6234,14 @@ export interface paths {
61806234
* @default ACTIVE
61816235
* @enum {string}
61826236
*/
6183-
status: "ACTIVE" | "FILED" | "IN_PROGRESS_DISASTER" | "IN_PROGRESS_PERSONAL" | "IN_PROGRESS_BUSINESS" | "IN_PROGRESS_INSURANCE" | "IN_PROGRESS_EXPORT";
6237+
status:
6238+
| "ACTIVE"
6239+
| "FILED"
6240+
| "IN_PROGRESS_DISASTER"
6241+
| "IN_PROGRESS_PERSONAL"
6242+
| "IN_PROGRESS_BUSINESS"
6243+
| "IN_PROGRESS_INSURANCE"
6244+
| "IN_PROGRESS_EXPORT";
61846245
createdAt: string;
61856246
/** Format: date-time */
61866247
updatedAt?: string;

0 commit comments

Comments
 (0)