Skip to content

Commit 4be5444

Browse files
committed
biome check
1 parent 363e0e1 commit 4be5444

File tree

8 files changed

+9
-11
lines changed

8 files changed

+9
-11
lines changed

website/src/components/templates/BaseTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { FC, PropsWithChildren } from "hono/jsx";
2-
import { t, Translation } from "../../translations";
2+
import { Translation, t } from "../../translations";
33
import type { Page } from "../../types/model";
44
import { getTranslationStatus } from "../../utils/translationStatus";
55
import {

website/src/components/templates/FuncTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { FC } from "hono/jsx";
2-
import { t, Translation } from "../../translations";
2+
import { Translation, t } from "../../translations";
33
import type { Func, FuncBody, Page } from "../../types/model";
44
import {
55
FunctionDefinition,

website/src/components/ui/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { FC, JSX, JSXNode } from "hono/jsx";
2-
import { t, Translation, TranslationProps } from "../../translations";
2+
import { Translation, TranslationProps, t } from "../../translations";
33
import { CloseIcon, HelpCircleIcon } from "../icons";
44

55
type TooltipProps = {

website/src/components/ui/common/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
typstOfficialUrl,
66
version,
77
} from "../../../metadata";
8-
import { t, Translation } from "../../../translations";
8+
import { Translation, t } from "../../../translations";
99
import { calculateTranslationProgressRate } from "../../../utils/translationStatus";
1010
import {
1111
DiscordIcon,

website/src/components/ui/common/SearchWindow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { FC } from "hono/jsx";
2-
import { t, Translation } from "../../../translations";
2+
import { Translation, t } from "../../../translations";
33
import { CloseIcon } from "../../icons";
44

55
export const SearchWindow: FC = () => {

website/src/components/ui/common/SiteNoticeBanner.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,10 @@ export const SiteNoticeBanner = () => {
5252
<span class="inline-block w-px h-12 bg-neutral-200 mx-3" />
5353
</span>
5454
<span class="block flex-1 pt-1 pb-2 leading-normal sm:inline sm:pt-0 sm:pb-0">
55-
<Translation translationKey="banner" version={version}/>
55+
<Translation translationKey="banner" version={version} />
5656
<br />
5757
This site provides a Japanese translation of the{" "}
58-
<a href={typstOfficialDocsUrl}>
59-
Typst v{version} documentation
60-
</a>{" "}
58+
<a href={typstOfficialDocsUrl}>Typst v{version} documentation</a>{" "}
6159
maintained by the "
6260
<a href={githubOrganizationUrl}>Typst Japanese Community</a>" with
6361
permission from Typst GmbH. We recommend using this alongside the{" "}

website/src/components/ui/common/TranslationStatusAlert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const TranslationStatusAlert: FC<TranslationStatusAlertProps> = ({
6868
"border rounded-md p-4",
6969
config.bgColor,
7070
config.borderColor,
71-
config.textColor
71+
config.textColor,
7272
)}
7373
>
7474
<div class="flex items-start">

website/src/translations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,6 @@ export const Translation: FC<TranslationProps> = (props) => {
240240
case "information":
241241
return <>情報</>;
242242
default:
243-
throw new Error(`No translationKey found for Translation Element`);
243+
throw new Error("No translationKey found for Translation Element");
244244
}
245245
};

0 commit comments

Comments
 (0)