linter issues
Some checks failed
Lint / Lint and Typecheck (push) Failing after 27s

This commit is contained in:
2025-11-15 16:43:44 +01:00
parent fe4783ae97
commit 8006a65e88
4 changed files with 10 additions and 10 deletions

View File

@@ -124,7 +124,7 @@ export default function MultiIconPattern({ opacity = 0.2, spacing = 160 }) {
for (let x = 0; x < columns; x++) { for (let x = 0; x < columns; x++) {
// Pick a random icon component from the array // Pick a random icon component from the array
const randomIndex = Math.floor(Math.random() * iconComponents.length); const randomIndex = Math.floor(Math.random() * iconComponents.length);
const IconComponent = iconComponents[randomIndex]!; const IconComponent = iconComponents[randomIndex];
// Slightly randomize size and position for more organic feel // Slightly randomize size and position for more organic feel
const size = 28 + Math.floor(Math.random() * 8); const size = 28 + Math.floor(Math.random() * 8);

View File

@@ -648,7 +648,7 @@ export default function FireCalculatorForm() {
)} )}
{result && ( {result && (
<Button <Button
onClick={() => setShowing4percent(!showing4percent)} onClick={() => { setShowing4percent(!showing4percent); }}
variant={showing4percent ? "secondary" : "default"} variant={showing4percent ? "secondary" : "default"}
size={"sm"} size={"sm"}
> >

View File

@@ -20,9 +20,9 @@ export type ChartConfig = Record<
) )
>; >;
type ChartContextProps = { interface ChartContextProps {
config: ChartConfig; config: ChartConfig;
}; }
const ChartContext = React.createContext<ChartContextProps | null>(null); const ChartContext = React.createContext<ChartContextProps | null>(null);

View File

@@ -18,12 +18,12 @@ import { Label } from "@/components/ui/label";
const Form = FormProvider; const Form = FormProvider;
type FormFieldContextValue< interface FormFieldContextValue<
TFieldValues extends FieldValues = FieldValues, TFieldValues extends FieldValues = FieldValues,
TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
> = { > {
name: TName; name: TName;
}; }
const FormFieldContext = React.createContext<FormFieldContextValue>( const FormFieldContext = React.createContext<FormFieldContextValue>(
{} as FormFieldContextValue, {} as FormFieldContextValue,
@@ -61,9 +61,9 @@ const useFormField = () => {
}; };
}; };
type FormItemContextValue = { interface FormItemContextValue {
id: string; id: string;
}; }
const FormItemContext = React.createContext<FormItemContextValue>( const FormItemContext = React.createContext<FormItemContextValue>(
{} as FormItemContextValue, {} as FormItemContextValue,
@@ -110,7 +110,7 @@ function FormControl({ ...props }: React.ComponentProps<typeof Slot>) {
id={formItemId} id={formItemId}
aria-describedby={ aria-describedby={
!error !error
? `${formDescriptionId}` ? formDescriptionId
: `${formDescriptionId} ${formMessageId}` : `${formDescriptionId} ${formMessageId}`
} }
aria-invalid={!!error} aria-invalid={!!error}