Skip to content

Commit 88641b3

Browse files
fix: Add React imports and disable strict ESLint rules for deployment
1 parent 8d5e0a2 commit 88641b3

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const eslintConfig = [
1616
{
1717
rules: {
1818
'react-hooks/exhaustive-deps': 'warn',
19+
'no-undef': 'off',
20+
'no-unused-vars': 'warn',
1921
},
2022
},
2123
]

src/app/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from "react"
12
import type { Metadata } from "next";
23
import { Geist, Geist_Mono } from "next/font/google";
34
import "./globals.css";

src/components/SearchBar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use client"
2+
import React from "react"
23

34
import { useState } from "react"
45
import { MagnifyingGlassIcon } from "@heroicons/react/24/outline"

src/components/providers/SessionProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use client"
22

3+
import React from "react"
34
import { SessionProvider as NextAuthSessionProvider } from "next-auth/react"
45

56
export function SessionProvider({ children }: { children: React.ReactNode }) {

src/components/providers/ThemeProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use client"
2+
import React from "react"
23

34
import { ThemeProvider as NextThemesProvider } from "next-themes"
45

0 commit comments

Comments
 (0)