fix: db data init and frontend warning

Signed-off-by: WindSpiritSR <simon343riley@gmail.com>
This commit is contained in:
WindSpiritSR
2021-07-16 17:04:16 +08:00
committed by Yang Luo
parent e986d3ab8e
commit a22dfd8954
7 changed files with 53 additions and 43 deletions

View File

@ -13,7 +13,6 @@
// limitations under the License.
import React from "react";
import {Link} from "react-router-dom";
import {Button, Col, Result, Row} from "antd";
import * as ApplicationBackend from "../backend/ApplicationBackend";
import * as UserBackend from "../backend/UserBackend";
@ -196,13 +195,11 @@ class PromptPage extends React.Component {
title="Sign Up Error"
subTitle={"You are unexpected to see this prompt page"}
extra={[
<Link onClick={() => {
<Button type="primary" key="signin" onClick={() => {
Setting.goToLogin(this, application);
}}>
<Button type="primary" key="signin">
Sign In
</Button>
</Link>
Sign In
</Button>
]}
>
</Result>