Skip to content

Commit

Permalink
chore: 파일 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
minsu-zip committed Aug 11, 2024
1 parent 633d381 commit a0bdb19
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
6 changes: 3 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import "@/styles/main.css"

import type { Metadata } from "next"

import AuthProvider from "@/common/AuthProvider"
import ErrorHandlingWrapper from "@/common/ErrorHandlingWrapper"
import NextAuthProvider from "@/common/NextAuthProvider"
import { QueryProviders } from "@/common/QueryProviders"
import { pretendard } from "@/font"
import AlertContainer from "@/store/AlertContext"
Expand Down Expand Up @@ -44,14 +44,14 @@ export default function RootLayout({
return (
<html lang="ko" className={`${pretendard}`}>
<body className={pretendard.className}>
<AuthProvider>
<NextAuthProvider>
<QueryProviders>
<ErrorHandlingWrapper>
<AlertContainer />
{children}
</ErrorHandlingWrapper>
</QueryProviders>
</AuthProvider>
</NextAuthProvider>
</body>
</html>
)
Expand Down
18 changes: 0 additions & 18 deletions src/common/AuthProvider.tsx

This file was deleted.

14 changes: 14 additions & 0 deletions src/common/NextAuthProvider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"use client"

import { SessionProvider } from "next-auth/react"
import React from "react"

interface Props {
children: React.ReactNode
}

const NextAuthProvider = ({ children }: Props) => {
return <SessionProvider>{children}</SessionProvider>
}

export default NextAuthProvider

0 comments on commit a0bdb19

Please sign in to comment.