mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 13:20:19 +08:00
fix: adjust error result position (#1683)
This commit is contained in:
@ -43,21 +43,20 @@ export function renderMessage(msg) {
|
|||||||
export function renderMessageLarge(ths, msg) {
|
export function renderMessageLarge(ths, msg) {
|
||||||
if (msg !== null) {
|
if (msg !== null) {
|
||||||
return (
|
return (
|
||||||
<div style={{display: "inline"}}>
|
<Result
|
||||||
<Result
|
style={{margin: "0px auto"}}
|
||||||
status="error"
|
status="error"
|
||||||
title="There was a problem signing you in.."
|
title="There was a problem signing you in.."
|
||||||
subTitle={msg}
|
subTitle={msg}
|
||||||
extra={[
|
extra={[
|
||||||
<Button type="primary" key="back" onClick={() => {
|
<Button type="primary" key="back" onClick={() => {
|
||||||
window.history.go(-2);
|
window.history.go(-2);
|
||||||
}}>
|
}}>
|
||||||
Back
|
Back
|
||||||
</Button>,
|
</Button>,
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
</Result>
|
</Result>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user