[Update] Add update software UI(modal).

This commit is contained in:
Sakamoto Shiina
2024-11-30 20:41:53 +09:00
parent 5ddc77a9cc
commit b88efcdf08
7 changed files with 95 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
import { useStdoutToPython } from "@logics/useStdoutToPython";
export const useUpdateSoftware = () => {
const { asyncStdoutToPython } = useStdoutToPython();
const updateSoftware = () => {
asyncStdoutToPython("/run/update_software");
};
return {
updateSoftware,
};
};