Skip to content

Commit

Permalink
refactor: separate view and container
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 11, 2024
1 parent e16648e commit 3598f0c
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 550 deletions.
8 changes: 1 addition & 7 deletions src/v2/components/Account/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ export const Account = () => {
const domainName = useResolveAddress(address)
const { addresses } = useUser()
const linkedAddressesCount = (addresses?.length ?? 1) - 1

const { captureEvent } = usePostHogContext()
// const [clickedOnNotifications, setClickedOnNotifications] = useLocalStorage(
// "clicked-web3inbox-feature-notification",
// false
// )

if (!address)
return (
Expand All @@ -46,14 +41,13 @@ export const Account = () => {

return (
<Card>
<Popover open={true} onOpenChange={setValue}>
<Popover open={isOpen} onOpenChange={setValue}>
<PopoverTrigger asChild>
<Button
variant="ghost"
className="rounded-r-none border-border border-r"
aria-label="Notifications"
onClick={() => {
// setClickedOnNotifications(true)
if (isOpen) return
captureEvent("opened UserActivityLogPopover")
}}
Expand Down
Loading

0 comments on commit 3598f0c

Please sign in to comment.