♻️ Use named exports for icons (#647)

This commit is contained in:
Luke Vella 2023-04-04 08:24:55 +01:00 committed by GitHub
parent fbcd5a5d2a
commit 12be9851e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
118 changed files with 216 additions and 375 deletions

View file

@ -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