is init yet from Rust

This commit is contained in:
polv committed 2026-02-24 19:25:37 +07:00
1 parent 9b5ae1cd8b
commit dcfe074535
9 files changed
+38 -91

No files matched your search

+4 -1
View File
@@ -1,12 +1,15 @@
import { useEffect, useState } from "react";
import { Dialog, Portal } from "@chakra-ui/react";
import { invoke } from "@tauri-apps/api/core";
function LoadingDialog() {
const [isLoading, setIsLoading] = useState(false);
useEffect(() => {
setIsLoading(true);
invoke<boolean>("is_yomitan_setup_yet").then((is_setup) =>
setIsLoading(!is_setup),
);
}, []);
return (