fix: linting cleanup, TS errors, mobile cookie banner and hero max-width
This commit is contained in:
@@ -32,7 +32,7 @@ export default async function MultisplitInquiryPage({ params }: Props) {
|
||||
const product = getProductBySlug(slug);
|
||||
if (!product || product.category !== 'multisplit') notFound();
|
||||
|
||||
const specIcons: Record<string, any> = {
|
||||
const specIcons: Record<string, React.ElementType> = {
|
||||
'Moc chłodnicza': Zap,
|
||||
'Moc grzewcza': Thermometer,
|
||||
'Głośność wewnętrzna (dB)': Volume2,
|
||||
|
||||
@@ -18,7 +18,8 @@ const multisplitFormSchema = z.object({
|
||||
productSku: z.string(),
|
||||
});
|
||||
|
||||
export async function submitMultisplitForm(data: any) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export async function submitMultisplitForm(data: Record<string, any>) {
|
||||
try {
|
||||
if (process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY && process.env.RECAPTCHA_SECRET_KEY) {
|
||||
if (!data.recaptchaToken) {
|
||||
|
||||
Reference in New Issue
Block a user