[fix] format the code

This commit is contained in:
PrinOrange
2024-09-13 23:07:20 +08:00
parent 9e3c4eed4a
commit 9c1235235e
2 changed files with 12 additions and 46 deletions

View File

@@ -1,10 +1,4 @@
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog";
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog";
import { CopyrightAnnouncement, RSSFeedURL } from "@/consts/consts";
import { Config } from "@/data/config";
import Link from "next/link";
@@ -47,9 +41,7 @@ export const Footer = () => {
</DialogTrigger>
)}
</div>
<div className="mx-auto px-3 text-center font-bold">
{CopyrightAnnouncement}
</div>
<div className="mx-auto px-3 text-center font-bold">{CopyrightAnnouncement}</div>
<DialogContent className="sm:max-w-md">
<DialogHeader>
<DialogTitle className="flex">
@@ -61,9 +53,8 @@ export const Footer = () => {
<div>
<div className="my-2 w-full text-sm">
<div>
<b>NOTE: </b>Some RSS Feed Reader may has deficient in rendering
SVG formulations, graphs. Such as the Inoreader, Feedly. If it
happens, please read the origin web page for better experience.
<b>NOTE: </b>Some RSS Feed Reader may has deficient in rendering SVG formulations, graphs. Such as the
Inoreader, Feedly. If it happens, please read the origin web page for better experience.
</div>
</div>
<Separator />
@@ -76,18 +67,12 @@ export const Footer = () => {
text={RSSFeedURL}
>
<Button
className={`my-auto ml-3 ${
isCopied && "bg-green-500 hover:bg-green-500"
}`}
className={`my-auto ml-3 ${isCopied && "bg-green-500 hover:bg-green-500"}`}
size="sm"
type="submit"
>
<span className="sr-only">{"Copy"}</span>
{isCopied ? (
<FaCheck className="h-4 w-4" />
) : (
<FaCopy className="h-4 w-4" />
)}
{isCopied ? <FaCheck className="h-4 w-4" /> : <FaCopy className="h-4 w-4" />}
</Button>
</CopyToClipboard>
</div>