Skip to content

Commit

Permalink
feat: upgrade dialect (#2265)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhelezkov committed Apr 27, 2024
1 parent 85b15bb commit 399dbbd
Show file tree
Hide file tree
Showing 27 changed files with 167 additions and 2,182 deletions.
17 changes: 17 additions & 0 deletions components/Dialect/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use client'

import { web3 } from '@coral-xyz/anchor'
import { DialectSolanaSdk } from '@dialectlabs/react-sdk-blockchain-solana'
import { NotificationsButton } from '@dialectlabs/react-ui'

const REALMS_PUBLIC_KEY = new web3.PublicKey(
'BUxZD6aECR5B5MopyvvYqJxwSKDBhx2jSSo1U32en6mj'
)

export default function DialectNotifications() {
return (
<DialectSolanaSdk dappAddress={REALMS_PUBLIC_KEY.toString()}>
<NotificationsButton />
</DialectSolanaSdk>
)
}
152 changes: 0 additions & 152 deletions components/DialectNotificationsModal/index.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions components/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import useQueryContext from '@hooks/useQueryContext'
import Link from 'next/link'
import dynamic from 'next/dynamic'
import NotificationsSwitch from './NotificationsSwitch'
import ThemeSwitch from './ThemeSwitch'
import { ExternalLinkIcon } from '@heroicons/react/outline'
import DialectNotifications from './Dialect'

const ConnectWalletButtonDynamic = dynamic(
async () => await import('./ConnectWalletButton'),
Expand Down Expand Up @@ -38,7 +38,7 @@ const NavBar = () => {
<ExternalLinkIcon className="stroke-white h-4 w-4 ml-2" />
</a>
<ThemeSwitch />
<NotificationsSwitch />
<DialectNotifications />
<ConnectWalletButtonDynamic />
</div>
</div>
Expand Down
14 changes: 0 additions & 14 deletions components/NotifiIcon.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions components/NotificationsCard/NotifiFullLogo.tsx

This file was deleted.

63 changes: 0 additions & 63 deletions components/NotificationsCard/NotifiLogoFullDark.tsx

This file was deleted.

63 changes: 0 additions & 63 deletions components/NotificationsCard/NotifiLogoFullLight .tsx

This file was deleted.

16 changes: 0 additions & 16 deletions components/NotificationsCard/NotifiLogoLightLong.svg

This file was deleted.

0 comments on commit 399dbbd

Please sign in to comment.