Skip to content

Commit

Permalink
chore: remove unused AccountButton
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Jul 8, 2024
1 parent 326a6a3 commit 99b0322
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 110 deletions.
74 changes: 0 additions & 74 deletions src/components/common/Layout/components/Account/Account.tsx

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { usePostHogContext } from "@/components/Providers/PostHogProvider"
import { Button } from "@/components/ui/Button"
import { useWeb3ConnectionManager } from "@/components/Web3ConnectionManager/hooks/useWeb3ConnectionManager"
import {
Divider,
Expand All @@ -16,7 +17,6 @@ import { ActivityLogProvider } from "components/[guild]/activity/ActivityLogCont
import useUser from "components/[guild]/hooks/useUser"
import useLocalStorage from "hooks/useLocalStorage"
import dynamic from "next/dynamic"
import AccountButton from "../AccountButton"
import WebInboxSkeleton from "../Web3Inbox/WebInboxSkeleton"
import NotificationsActivityLog from "./components/NotificationsActivityLog"
import NotificationsSection from "./components/NotificationsSection"
Expand Down Expand Up @@ -51,22 +51,22 @@ const Notifications = () => {
{({ isOpen }) => (
<>
<PopoverTrigger>
<AccountButton
<Button
aria-label="Notifications"
onClick={() => {
setClickedOnNotifications(true)
if (isOpen) return
captureEvent("opened UserActivityLogPopover")
}}
sx={{
"@keyframes notification": {
"0%": { transform: "rotate(0deg)" },
"2.5%": { transform: "rotate(15deg)" },
"5%": { transform: "rotate(-15deg)" },
"7.5": { transform: "rotate(15deg)" },
"10%": { transform: "rotate(0deg)" },
},
}}
// sx={{
// "@keyframes notification": {
// "0%": { transform: "rotate(0deg)" },
// "2.5%": { transform: "rotate(15deg)" },
// "5%": { transform: "rotate(-15deg)" },
// "7.5": { transform: "rotate(15deg)" },
// "10%": { transform: "rotate(0deg)" },
// },
// }}
>
<Icon
as={Bell}
Expand All @@ -77,7 +77,7 @@ const Notifications = () => {
: "notification 4s ease-in-out infinite"
}
/>
</AccountButton>
</Button>
</PopoverTrigger>

<PopoverContent
Expand Down
3 changes: 0 additions & 3 deletions src/components/common/Layout/components/Account/index.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ const AccountButton = () => {
</Button>
)
}

export default AccountButton

0 comments on commit 99b0322

Please sign in to comment.