feat: replace like icon

This commit is contained in:
DIYgod
2023-03-14 19:31:39 +00:00
parent be6995b8ae
commit 3e00f64f8c
4 changed files with 37 additions and 47 deletions
+6 -4
View File
@@ -1,4 +1,3 @@
import { LikeIcon } from "~/components/icons/LikeIcon"
import {
useMintPage,
useGetLikes,
@@ -169,9 +168,12 @@ export const Reactions: React.FC<{
isLoading={userSite.isLoading || toggleLikePage.isPending}
ref={likeRef}
>
<LikeIcon
className={"mr-1 " + (size === "sm" ? "w-4 h-4" : "w-10 h-10")}
/>
<span
className={cn(
"i-mingcute:thumb-up-2-fill mr-1",
size === "sm" ? "text-base" : "text-[40px]",
)}
></span>
<span>{likeCount}</span>
</Button>
{size !== "sm" && (
-21
View File
@@ -1,21 +0,0 @@
import React from "react"
export const LikeIcon: React.FC<React.ComponentPropsWithoutRef<"svg">> = (
props,
) => {
return (
<svg
width="1em"
height="1em"
{...props}
viewBox="0 0 1024 1024"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M780.8 204.8c-83.2-44.8-179.2-19.2-243.2 44.8L512 275.2 486.4 249.6c-64-64-166.4-83.2-243.2-44.8C108.8 275.2 89.6 441.6 185.6 537.6l32 32 153.6 153.6 102.4 102.4c25.6 25.6 57.6 25.6 83.2 0l102.4-102.4 153.6-153.6 32-32C934.4 441.6 915.2 275.2 780.8 204.8z"
p-id="2929"
></path>
</svg>
)
}