Skip to content

Commit

Permalink
🚨 fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
zty012 committed Dec 7, 2024
1 parent 3c5af7d commit 35dd016
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 33 deletions.
23 changes: 6 additions & 17 deletions src/pages/settings/automation.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import {
HardDriveDownload,
Tag,
Database,
Hourglass,
HardDrive,
Folder,
HardDrive,
HardDriveDownload,
Hourglass,
Tag,
} from "lucide-react";
import { SettingField } from "./_field";
import { useTranslation } from "react-i18next";

// 其实应该改成快捷操作相关
export default function AutoNamer() {
const { t } = useTranslation("settingsAutomation");

return (
<>
<SettingField
Expand All @@ -26,11 +23,7 @@ export default function AutoNamer() {
settingKey="autoSaveWhenClose"
type="switch"
/>
<SettingField
icon={<HardDrive />}
settingKey="autoSave"
type="switch"
/>
<SettingField icon={<HardDrive />} settingKey="autoSave" type="switch" />
<SettingField
icon={<Hourglass />}
settingKey="autoSaveInterval"
Expand All @@ -39,11 +32,7 @@ export default function AutoNamer() {
max={60}
step={1}
/>
<SettingField
icon={<Database />}
settingKey="autoBackup"
type="switch"
/>
<SettingField icon={<Database />} settingKey="autoBackup" type="switch" />
<SettingField
icon={<Hourglass />}
settingKey="autoBackupInterval"
Expand Down
24 changes: 8 additions & 16 deletions src/pages/welcome/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { ArrowRight, Globe, Languages } from "lucide-react";
import { ButtonField, SettingField } from "../settings/_field";
import { useNavigate } from "../../router";
import { open } from "@tauri-apps/plugin-shell";
import Github from "../../assets/github.svg?react";
import { ArrowRight, Globe, Languages } from "lucide-react";
import { useTranslation } from "react-i18next";
import Bilibili from "../../assets/bilibili.svg?react";
import Github from "../../assets/github.svg?react";
import QQ from "../../assets/qq.svg?react";
import TauriIcon from "../../assets/tauri.svg?react";
import ReactIcon from "../../assets/react.svg?react";
import TauriIcon from "../../assets/tauri.svg?react";
import { Camera } from "../../core/stage/Camera";
import { useTranslation } from "react-i18next";
import { languages } from "../settings/_languages";
import { useNavigate } from "../../router";
import { ButtonField, SettingField } from "../settings/_field";

export default function Welcome() {
const navigate = useNavigate();
Expand All @@ -18,14 +17,7 @@ export default function Welcome() {
return (
<>
{/* 设置语言 */}
<SettingField
icon={<Languages />}
title={t("language")}
showKey={false}
settingKey="language"
type="select"
options={languages}
/>
<SettingField icon={<Languages />} settingKey="language" type="select" />
{/* next按钮 */}
<ButtonField
icon={<ArrowRight />}
Expand Down Expand Up @@ -66,7 +58,7 @@ export default function Welcome() {
}
/>
{/* 页脚信息 */}
<blockquote className="lg:mt-8 md:mt-4 border-l-4 border-gray-500 pl-4 text-gray-500">
<blockquote className="border-l-4 border-gray-500 pl-4 text-gray-500 md:mt-4 lg:mt-8">
Made by LiRenTech with ❤️
<br />
Powered by <TauriIcon className="inline-block h-6 w-6" /> and{" "}
Expand Down

0 comments on commit 35dd016

Please sign in to comment.