Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Commit 399dbbd

Browse files
authored
feat: upgrade dialect (#2265)
1 parent 85b15bb commit 399dbbd

27 files changed

+167
-2182
lines changed

components/Dialect/index.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'use client'
2+
3+
import { web3 } from '@coral-xyz/anchor'
4+
import { DialectSolanaSdk } from '@dialectlabs/react-sdk-blockchain-solana'
5+
import { NotificationsButton } from '@dialectlabs/react-ui'
6+
7+
const REALMS_PUBLIC_KEY = new web3.PublicKey(
8+
'BUxZD6aECR5B5MopyvvYqJxwSKDBhx2jSSo1U32en6mj'
9+
)
10+
11+
export default function DialectNotifications() {
12+
return (
13+
<DialectSolanaSdk dappAddress={REALMS_PUBLIC_KEY.toString()}>
14+
<NotificationsButton />
15+
</DialectSolanaSdk>
16+
)
17+
}

components/DialectNotificationsModal/index.tsx

Lines changed: 0 additions & 152 deletions
This file was deleted.

components/NavBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import useQueryContext from '@hooks/useQueryContext'
22
import Link from 'next/link'
33
import dynamic from 'next/dynamic'
4-
import NotificationsSwitch from './NotificationsSwitch'
54
import ThemeSwitch from './ThemeSwitch'
65
import { ExternalLinkIcon } from '@heroicons/react/outline'
6+
import DialectNotifications from './Dialect'
77

88
const ConnectWalletButtonDynamic = dynamic(
99
async () => await import('./ConnectWalletButton'),
@@ -38,7 +38,7 @@ const NavBar = () => {
3838
<ExternalLinkIcon className="stroke-white h-4 w-4 ml-2" />
3939
</a>
4040
<ThemeSwitch />
41-
<NotificationsSwitch />
41+
<DialectNotifications />
4242
<ConnectWalletButtonDynamic />
4343
</div>
4444
</div>

components/NotifiIcon.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

components/NotificationsCard/NotifiFullLogo.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

components/NotificationsCard/NotifiLogoFullDark.tsx

Lines changed: 0 additions & 63 deletions
This file was deleted.

components/NotificationsCard/NotifiLogoFullLight .tsx

Lines changed: 0 additions & 63 deletions
This file was deleted.

components/NotificationsCard/NotifiLogoLightLong.svg

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)