Skip to content

Commit

Permalink
fix: incorrect component name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dun-sin committed Oct 5, 2024
1 parent 381262b commit f44d7df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/components/mainContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { OptionsProvider } from '../context/optionsContext';

import { useTheme } from '../context/themeContext';

const mainContainer = ({
const MainContainer = ({
children,
}: Readonly<{
children: React.ReactNode;
Expand All @@ -30,4 +30,4 @@ const mainContainer = ({
);
};

export default mainContainer;
export default MainContainer;
6 changes: 3 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'react-toastify/dist/ReactToastify.css';
import { AuthProvider } from './context/authContext';
import { Inter } from 'next/font/google';
import type { Metadata } from 'next';
import SuspenseWrapper from './components/SuspenseWrapper';
import MainContainer from './components/mainContainer';
import { ThemeProvider } from './context/themeContext';
import { ToastContainer } from 'react-toastify';
import ConnectSpotify from './components/ConnectSpotify';
Expand Down Expand Up @@ -32,15 +32,15 @@ export default function RootLayout({
<AuthProvider>
<ThemeProvider>
<div className='relative'>
<SuspenseWrapper>
<MainContainer>
{children}
<ToastContainer
autoClose={2500}
hideProgressBar
closeOnClick
pauseOnHover={false}
/>
</SuspenseWrapper>
</MainContainer>
<ConnectSpotify authUrl={authUrl} />
</div>
</ThemeProvider>
Expand Down

0 comments on commit f44d7df

Please sign in to comment.