feat: use get workspace profile in frontend

This commit is contained in:
Steven
2023-09-21 08:46:48 +08:00
parent 58cb5c7e2e
commit 8f17abdbf0
13 changed files with 59 additions and 75 deletions

View File

@ -13,10 +13,7 @@ const SignIn: React.FC = () => {
const navigate = useNavigate();
const userStore = useUserStore();
const {
workspaceProfile: {
disallowSignUp,
profile: { mode },
},
workspaceProfile: { enableSignup, mode },
} = useAppSelector((state) => state.global);
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
@ -108,7 +105,7 @@ const SignIn: React.FC = () => {
</Button>
</div>
</form>
{!disallowSignUp && (
{enableSignup && (
<p className="w-full mt-4 text-sm">
<span>{"Don't have an account yet?"}</span>
<Link to="/auth/signup" className="cursor-pointer ml-2 text-blue-600 hover:underline">