♻️ 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 DotsHorizontal from "@rallly/icons/dots-horizontal.svg";
import Trash from "@rallly/icons/trash.svg";
import { DotsHorizontalIcon, TrashIcon } from "@rallly/icons";
import clsx from "clsx";
import { useTranslation } from "next-i18next";
import * as React from "react";
@ -110,10 +109,10 @@ const Discussion: React.FunctionComponent = () => {
{canDelete && (
<Dropdown
placement="bottom-start"
trigger={<CompactButton icon={DotsHorizontal} />}
trigger={<CompactButton icon={DotsHorizontalIcon} />}
>
<DropdownItem
icon={Trash}
icon={TrashIcon}
label={t("deleteComment")}
onClick={() => {
deleteComment.mutate({