diff --git a/src/components/AccountNotifications.tsx b/src/components/AccountNotifications.tsx index b11d05e5b..411cdb369 100644 --- a/src/components/AccountNotifications.tsx +++ b/src/components/AccountNotifications.tsx @@ -31,30 +31,31 @@ export const AccountNotifications = (props: IProps) => { ), ); - const [showNotifications, setShowNotifications] = useState(true); + const [showAccountNotifications, setShowAccountNotifications] = + useState(true); - const toggleNotifications = () => { - setShowNotifications(!showNotifications); + const toggleAccountNotifications = () => { + setShowAccountNotifications(!showAccountNotifications); }; const ChevronIcon = notifications.length === 0 ? ChevronLeftIcon - : showNotifications + : showAccountNotifications ? ChevronDownIcon : ChevronUpIcon; - const toggleNotificationsLabel = + const toggleAccountNotificationsLabel = notifications.length === 0 ? 'No notifications for account' - : showNotifications + : showAccountNotifications ? 'Hide account notifications' : 'Show account notifications'; return ( <> {showAccountHostname && ( -