From fead2502d4b5d53d9bd4e7190e9a549cf29339b9 Mon Sep 17 00:00:00 2001 From: Charles Bergeron Date: Mon, 13 Nov 2023 09:16:23 -0800 Subject: [PATCH 1/2] comment out aave msg --- src/components/Layout/index.tsx | 50 ++++++++++++++++----------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 2a582060..2faef1ef 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -18,11 +18,11 @@ interface LayoutProps { const Layout = (props: LayoutProps) => { const { children, className, backgroundClassName } = props - useEffect(() => { - temporaryAlerts.forEach((alert) => { - toast(alert.content, { id: alert.id }) - }) - }) + // useEffect(() => { + // temporaryAlerts.forEach((alert) => { + // toast(alert.content, { id: alert.id }) + // }) + // }) return (
{ 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, the Optimism prize pool will be - unavailable in the meantime. Deposits will be paused for the Optimism prize pool until - further updates. No funds are at risk.{' '} - - ) - } -] +// 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, the Optimism prize pool will be +// unavailable in the meantime. Deposits will be paused for the Optimism prize pool until +// further updates. No funds are at risk.{' '} +// +// ) +// } +// ] From 724a812f3f717bfcbb25d8a70b130ef1e10b3b65 Mon Sep 17 00:00:00 2001 From: Charles Bergeron Date: Tue, 14 Nov 2023 10:46:19 -0800 Subject: [PATCH 2/2] 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.{' '} -// -// ) -// } -// ]