Skip to content

Commit

Permalink
Merge pull request #148 from chuckbergeron/production
Browse files Browse the repository at this point in the history
Remove Aave message
  • Loading branch information
lcusack authored Nov 15, 2023
2 parents b9cc219 + 724a812 commit eda1b67
Showing 1 changed file with 1 addition and 38 deletions.
39 changes: 1 addition & 38 deletions src/components/Layout/index.tsx
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 (
<div
className={classNames(
Expand All @@ -34,34 +22,9 @@ const Layout = (props: LayoutProps) => {
>
<PageHeader />
<Navigation />
{/* <AlertBanners /> */}
{children}
</div>
)
}

// 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: (
<span className='flex flex-col items-center text-center text-xxs'>
Aave has temporarily paused deposits and withdrawals on some assets until{' '}
<ExternalLink
href='https://app.aave.com/governance/proposal/?proposalId=358'
className='text-pt-teal transition hover:opacity-90 underline'
underline
>
proposal 358
</ExternalLink>{' '}
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.{' '}
</span>
)
}
]

0 comments on commit eda1b67

Please sign in to comment.