Add EnableSignUp.

This commit is contained in:
Yang Luo
2021-03-26 21:55:39 +08:00
parent da38f7a6ba
commit b6b433f26a
7 changed files with 165 additions and 139 deletions

View File

@ -14,6 +14,7 @@
import React from "react";
import {Alert, Button, message, Result} from "antd";
import * as Setting from "../Setting";
export function goToLink(link) {
window.location.href = link;
@ -58,10 +59,12 @@ export function renderMessageLarge(msg) {
title="Login Error"
subTitle={msg}
extra={[
<Button type="primary" key="details">
Details
<Button key="home" onClick={() => Setting.goToLink("/")}>
Home
</Button>,
<Button type="primary" key="help" onClick={() => Setting.goToLink("/help")}>
Help
</Button>,
<Button key="help">Help</Button>,
]}
>
</Result>