Skip to content

Commit

Permalink
fix: remove nested toast container
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-chaturvedi committed Dec 9, 2024
1 parent eae237e commit a7a3a95
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions frontend/app/[team]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import clsx from 'clsx'
import { usePathname, useRouter } from 'next/navigation'
import { useContext, useEffect } from 'react'
import UnlockKeyringDialog from '@/components/auth/UnlockKeyringDialog'
import { ToastContainer } from 'react-toastify'
import { ThemeContext } from '@/contexts/themeContext'

export default function RootLayout({
children,
Expand All @@ -21,8 +19,6 @@ export default function RootLayout({
const { activeOrganisation, setActiveOrganisation, organisations, loading } =
useContext(organisationContext)

const { theme } = useContext(ThemeContext)

const router = useRouter()

useEffect(() => {
Expand Down Expand Up @@ -64,20 +60,6 @@ export default function RootLayout({
{children}
</div>
</div>
<ToastContainer
position="bottom-right"
autoClose={4000}
hideProgressBar={false}
newestOnTop={false}
closeOnClick
rtl={false}
pauseOnFocusLoss
draggable
pauseOnHover
theme={theme === 'dark' ? 'dark' : 'light'}
stacked
bodyClassName="text-xs"
/>
</div>
)
}

0 comments on commit a7a3a95

Please sign in to comment.