chore: format code

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-09-16 22:13:57 +08:00
parent e01985b1e9
commit 631156e3f5
13 changed files with 12457 additions and 7233 deletions
+1181 -1198
View File
File diff suppressed because it is too large Load Diff
+11266 -6019
View File
File diff suppressed because it is too large Load Diff
@@ -12,7 +12,7 @@ export function PhCloudWarning(props: SVGProps<SVGSVGElement>) {
<path
fill="currentColor"
d="M160 40a88.09 88.09 0 0 0-78.71 48.67A64 64 0 1 0 72 216h88a88 88 0 0 0 0-176m0 160H72a48 48 0 0 1 0-96c1.1 0 2.2 0 3.29.11A88 88 0 0 0 72 128a8 8 0 0 0 16 0a72 72 0 1 1 72 72m-8-72V88a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12"
/>
/>
</svg>
)
}
+1 -1
View File
@@ -278,7 +278,7 @@ function MaterialSymbolsBackspaceOutlineSharp(props: React.SVGProps<SVGSVGElemen
<path
fill="currentColor"
d="M7.95 19L3 12l4.95-7H21v14zM9 17h10V7H9l-3.55 5zm2.4-1l2.6-2.6l2.6 2.6l1.4-1.4l-2.6-2.6L18 9.4L16.6 8L14 10.6L11.4 8L10 9.4l2.6 2.6l-2.6 2.6zm7.6 1V7z"
/>
/>
</svg>
)
}
@@ -23,7 +23,6 @@ const createIconTransition =
({ icon1, icon2, status, className, icon1ClassName, icon2ClassName }: IconTransitionProps) => {
const [isMount, setIsMounted] = useState(false)
useEffect(() => {
setIsMounted(true)
return () => setIsMounted(false)
}, [])
@@ -97,7 +97,7 @@ export const DailyReportTitle = ({
</span>
),
}}
/>
/>
</li>
<li>{t("ai_daily.tooltip.update_schedule")}</li>
</ul>
@@ -84,7 +84,7 @@ export const FeedClaimModalContent: FC<{
<Trans
i18nKey="feed_claim_modal.description_instructions"
components={{ code: <code className="text-sm">{"<description />"}</code> }}
/>
/>
{feed.url.startsWith("rsshub://") && (
<p className="mt-1 leading-tight text-orange-800">
{t("feed_claim_modal.rsshub_notice")}
@@ -1,10 +1,5 @@
import { FeedIcon } from "@renderer/components/feed-icon"
import {
Card,
CardContent,
CardHeader,
CardTitle,
} from "@renderer/components/ui/card"
import { Card, CardContent, CardHeader, CardTitle } from "@renderer/components/ui/card"
import { useModalStack } from "@renderer/components/ui/modal/stacked/hooks"
import type { FC } from "react"
import { memo } from "react"
@@ -1,6 +1,6 @@
import { subscriptionActions } from "@renderer/store/subscription"
import { useMutation } from "@tanstack/react-query"
import { Trans,useTranslation } from "react-i18next"
import { Trans, useTranslation } from "react-i18next"
import { Button } from "../../components/ui/button"
import { useCurrentModal } from "../../components/ui/modal"
@@ -1,4 +1,3 @@
import { getReadonlyRoute } from "@renderer/atoms/route"
import { useUISettingKey } from "@renderer/atoms/settings/ui"
import { useSidebarActiveView } from "@renderer/atoms/sidebar"
@@ -16,7 +16,7 @@ export const CreateWallet = () => {
PowerIcon: <i className="i-mgc-power translate-y-[2px] text-accent" />,
strong: <strong />,
}}
/>
/>
</p>
<div className="mt-4 text-right">
<Button variant="primary" isLoading={mutation.isPending} onClick={() => mutation.mutate()}>
@@ -68,10 +68,10 @@ export const MyWalletSection = () => {
target="_blank"
href="https://scan.rss3.io/token/0xE06Af68F0c9e819513a6CD083EF6848E76C28CD8"
rel="noreferrer noopener"
/>
/>
),
}}
/>
/>
<p>{t("wallet.power.dailyClaim", { amount: DAILY_CLAIM_AMOUNT })}</p>
</div>
<SettingSectionTitle margin="compact" title={t("wallet.address.title")} />
+1
View File
@@ -19,6 +19,7 @@ To add support for a new language:
2. Select the desired locale from the list.
3. The script will:
- Create new resource files for the selected locale
- Update the necessary configuration files