feat: use mingcute icon
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export const EmptyState: React.FC<{ resource?: string }> = ({ resource }) => {
|
||||
return (
|
||||
<div className="text-center py-10 mb-10 text-2xl text-zinc-300 font-medium flex justify-center flex-col items-center">
|
||||
<span className="i-mdi:ghost-outline text-5xl mb-2"></span>
|
||||
<span className="i-mingcute:ghost-line text-5xl mb-2"></span>
|
||||
<div className="">
|
||||
{" "}
|
||||
No <span className="capitalize">{resource || "posts"}</span> Yet.
|
||||
|
||||
@@ -4,7 +4,6 @@ import { useState } from "react"
|
||||
import { useUploadFile } from "~/hooks/useUploadFile"
|
||||
import { toGateway } from "~/lib/ipfs-parser"
|
||||
import { Image } from "~/components/ui/Image"
|
||||
import { XMarkIcon } from "@heroicons/react/20/solid"
|
||||
|
||||
const getBase64 = (img: File, callback: (url: string) => void) => {
|
||||
const reader = new FileReader()
|
||||
@@ -19,7 +18,6 @@ export const ImageUploader = forwardRef(function ImageUploader(
|
||||
uploadStart,
|
||||
uploadEnd,
|
||||
withMimeType,
|
||||
hasClose,
|
||||
...inputProps
|
||||
}: {
|
||||
className?: string
|
||||
@@ -136,14 +134,6 @@ export const ImageUploader = forwardRef(function ImageUploader(
|
||||
type="file"
|
||||
className="absolute top-0 bottom-0 left-0 right-0 opacity-0"
|
||||
/>
|
||||
{imageUrl && hasClose && (
|
||||
<div
|
||||
onClick={clear}
|
||||
className="w-8 h-8 absolute top-4 right-4 shadow bg-white rounded-full cursor-pointer"
|
||||
>
|
||||
<XMarkIcon />
|
||||
</div>
|
||||
)}
|
||||
{loading && (
|
||||
<div className="absolute top-0 bottom-0 left-0 right-0 flex justify-center items-center bg-gray-500 opacity-50">
|
||||
<div className="loading flex justify-center items-center relative text-white"></div>
|
||||
|
||||
Reference in New Issue
Block a user