From 724a812f3f717bfcbb25d8a70b130ef1e10b3b65 Mon Sep 17 00:00:00 2001 From: Charles Bergeron Date: Tue, 14 Nov 2023 10:46:19 -0800 Subject: [PATCH] simply remove all the alert code --- src/components/Layout/index.tsx | 39 +-------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 63fecbd0..f74e61a7 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -1,14 +1,8 @@ import { PageHeader } from '@components/Layout/PageHeader' -import { ExternalLink } from '@pooltogether/react-components' import classNames from 'classnames' -import React, { useEffect, ReactNode } from 'react' -import { toast } from 'sonner' +import React from 'react' import { Navigation } from './Navigation' -/** - * Sonner Toasts - */ - interface LayoutProps { className?: string backgroundClassName?: string @@ -18,12 +12,6 @@ interface LayoutProps { const Layout = (props: LayoutProps) => { const { children, className, backgroundClassName } = props - // useEffect(() => { - // temporaryAlerts.forEach((alert) => { - // toast(alert.content, { id: alert.id }) - // }) - // }) - return (
{ > - {/* */} {children}
) } -// Layout.defaultProps = { -// backgroundClassName: -// 'bg-gradient-to-br from-pt-purple-lightest to-pt-purple-lighter dark:from-gradient-purple dark:to-pt-purple-darkest minimal-scrollbar' -// } - export default Layout - -// const temporaryAlerts: { id: string; content: ReactNode }[] = [ -// { -// id: 'aave-issues-04-11-2023', -// content: ( -// -// Aave has temporarily paused deposits and withdrawals on some assets until{' '} -// -// proposal 358 -// {' '} -// passes, due to a security issue. While no funds are at risk, this temporarily halts deposits and withdrawals from the Optimism and Polygon prize pools until the proposal passes.{' '} -// -// ) -// } -// ]