Skip to content

Commit

Permalink
feat : added notification
Browse files Browse the repository at this point in the history
  • Loading branch information
surajhub255 committed Aug 20, 2024
1 parent cb95b63 commit d1173c0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/ui/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ export const Navbar = () => {
{ title: 'WebXR', path: 'https://webxr.myriadflow.com' },
];

const Notification = () => {
if (!address) {
toast.warning("Currently works with Metamask and Coinbase Wallet Extension. We are working on Smart Wallet functionality.", {
containerId: "containerA",
position: 'top-left',
}
)
}
};
const handleLogout = () => {
disconnect();
};
Expand Down Expand Up @@ -155,7 +164,9 @@ export const Navbar = () => {
</div>
</>
) : (
<div onClick={Notification}>
<w3m-button />
</div>
)}
</div>
</NavigationMenuList>
Expand Down

0 comments on commit d1173c0

Please sign in to comment.