chore: updates

This commit is contained in:
Tristan Yang
2024-07-11 15:26:02 +08:00
parent f18aa66de1
commit 0c191b4282
9 changed files with 58 additions and 34 deletions
@@ -4,9 +4,9 @@ import clsx from "clsx";
import { User } from "@/types/user";
import { formatBytes, fromNowTime, getFileIcon } from "@/utils";
import IconClose from "@/assets/icons/close.circle.svg";
import IconDownload from "@/assets/icons/download.svg";
import ExpiredMessage from "./ExpiredMessage";
import Progress from "./Progress";
import DownloadArea from "./DownloadArea";
type Props = {
content: string;
@@ -87,13 +87,7 @@ const OtherFileMessage = ({
{sending ? (
<IconClose className="cursor-pointer" onClick={handleCancel} />
) : (
<a
className="hidden md:block whitespace-nowrap"
download={name}
href={`${content}&download=true`}
>
<IconDownload className="fill-gray-500 dark:fill-gray-400" />
</a>
<DownloadArea copyLink={content} downloadLink={`${content}&download=true`} />
)}
</div>
</div>