chore: rename status to profile

This commit is contained in:
Steven
2023-06-24 23:01:10 +08:00
parent ff963e36d7
commit 6b0b53269b
5 changed files with 13 additions and 12 deletions

View File

@@ -1,12 +1,12 @@
import { Checkbox } from "@mui/joy";
import { useEffect, useState } from "react";
import { getSystemStatus, upsertWorkspaceSetting } from "../../helpers/api";
import { getWorkspaceProfile, upsertWorkspaceSetting } from "../../helpers/api";
const WorkspaceSection: React.FC = () => {
const [disallowSignUp, setDisallowSignUp] = useState<boolean>(false);
useEffect(() => {
getSystemStatus().then(({ data }) => {
getWorkspaceProfile().then(({ data }) => {
setDisallowSignUp(data.disallowSignUp);
});
}, []);