chore: add consistent type imports

This commit is contained in:
Christian Andolf
2024-12-09 14:36:56 +01:00
parent 9867a56cc8
commit e08e960209
172 changed files with 587 additions and 333 deletions
@@ -1,4 +1,4 @@
import React, { forwardRef, InputHTMLAttributes } from "react"
import React, { forwardRef, type InputHTMLAttributes } from "react"
import { Input as InputRAC } from "react-aria-components"
import Body from "@/components/TempDesignSystem/Text/Body"
@@ -1,9 +1,9 @@
"use client"
import Downshift from "downshift"
import {
ChangeEvent,
FocusEvent,
FormEvent,
type ChangeEvent,
type FocusEvent,
type FormEvent,
useCallback,
useEffect,
useReducer,
+1 -1
View File
@@ -14,7 +14,7 @@ import styles from "./form.module.css"
import type { BookingWidgetSchema } from "@/types/components/bookingWidget"
import type { BookingWidgetFormProps } from "@/types/components/form/bookingwidget"
import { Location } from "@/types/trpc/routers/hotel/locations"
import type { Location } from "@/types/trpc/routers/hotel/locations"
const formId = "booking-widget"
+2 -2
View File
@@ -26,7 +26,7 @@ import Title from "@/components/TempDesignSystem/Text/Title"
import { toast } from "@/components/TempDesignSystem/Toasts"
import useLang from "@/hooks/useLang"
import { SignUpSchema, signUpSchema } from "./schema"
import { type SignUpSchema, signUpSchema } from "./schema"
import styles from "./form.module.css"
@@ -191,7 +191,7 @@ export default function SignupForm({ link, subtitle, title }: SignUpFormProps) {
</Body>
</section>
{/*
{/*
This is a manual validation trigger workaround:
- The Controller component (which Input uses) doesn't re-render on submit,
which prevents automatic error display.