mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-02 02:31:53 +02:00
♻️ Use named exports for icons (#647)
This commit is contained in:
parent
fbcd5a5d2a
commit
12be9851e1
118 changed files with 216 additions and 375 deletions
|
@ -1,6 +1,5 @@
|
|||
import { trpc } from "@rallly/backend";
|
||||
import Bell from "@rallly/icons/bell.svg";
|
||||
import BellCrossed from "@rallly/icons/bell-crossed.svg";
|
||||
import { BellCrossedIcon, BellIcon } from "@rallly/icons";
|
||||
import { useTranslation } from "next-i18next";
|
||||
import * as React from "react";
|
||||
|
||||
|
@ -62,7 +61,7 @@ const NotificationsToggle: React.FunctionComponent = () => {
|
|||
data-testid="notifications-toggle"
|
||||
loading={isUpdating}
|
||||
disabled={poll.demo}
|
||||
icon={isWatching ? <Bell /> : <BellCrossed />}
|
||||
icon={isWatching ? <BellIcon /> : <BellCrossedIcon />}
|
||||
onClick={async () => {
|
||||
if (user.isGuest) {
|
||||
// ask to log in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue