Compare commits

1 Commits

Author SHA1 Message Date
luckfox-eng29
6f426e8999 Update App version to 0.1.2
Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
2026-03-22 23:06:10 +08:00

View File

@@ -6,7 +6,6 @@ import { CheckCircleIcon } from "@heroicons/react/20/solid";
import { isMobile } from "react-device-detect";
import { useJsonRpc } from "@/hooks/useJsonRpc";
import { useBootStorageType } from "@/hooks/useBootStorage";
import { SettingsPageHeader } from "@components/Settings/SettingsPageheader";
import { SettingsItem } from "@components/Settings/SettingsView";
import Card from "@components/Card";
@@ -35,8 +34,6 @@ export default function SettingsVersion() {
const [autoUpdate, setAutoUpdate] = useState(true);
const { $at } = useReactAt();
const { setModalView, otaState } = useUpdateStore();
const { bootStorageType } = useBootStorageType();
const isBootFromSD = bootStorageType === "sd";
const [isUpdateDialogOpen, setIsUpdateDialogOpen] = useState(false);
const updatePanelRef = useRef<HTMLDivElement | null>(null);
const [updateSource, setUpdateSource] = useState("github");
@@ -205,23 +202,19 @@ export default function SettingsVersion() {
}
/>
{!isBootFromSD && (
<>
<UpdateSourceSettings
updateSource={updateSource}
onUpdateSourceChange={applyUpdateSource}
customUpdateBaseURL={customUpdateBaseURL}
onCustomUpdateBaseURLChange={setCustomUpdateBaseURL}
onSaveCustomUpdateBaseURL={applyCustomUpdateBaseURL}
/>
<UpdateSourceSettings
updateSource={updateSource}
onUpdateSourceChange={applyUpdateSource}
customUpdateBaseURL={customUpdateBaseURL}
onCustomUpdateBaseURLChange={setCustomUpdateBaseURL}
onSaveCustomUpdateBaseURL={applyCustomUpdateBaseURL}
/>
<div className="flex items-center justify-start">
<AntdButton type="primary" onClick={checkForUpdates} className={isMobile ? "w-full" : ""}>
{$at("Check for Updates")}
</AntdButton>
</div>
</>
)}
<div className="flex items-center justify-start">
<AntdButton type="primary" onClick={checkForUpdates} className={isMobile ? "w-full" : ""}>
{$at("Check for Updates")}
</AntdButton>
</div>
<div className="hidden">
<SettingsItem