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) {
|
||||
if (msg !== null) {
|
||||
return (
|
||||
<div style={{display: "inline"}}>
|
||||
<Result
|
||||
status="error"
|
||||
title="There was a problem signing you in.."
|
||||
subTitle={msg}
|
||||
extra={[
|
||||
<Button type="primary" key="back" onClick={() => {
|
||||
window.history.go(-2);
|
||||
}}>
|
||||
<Result
|
||||
style={{margin: "0px auto"}}
|
||||
status="error"
|
||||
title="There was a problem signing you in.."
|
||||
subTitle={msg}
|
||||
extra={[
|
||||
<Button type="primary" key="back" onClick={() => {
|
||||
window.history.go(-2);
|
||||
}}>
|
||||
Back
|
||||
</Button>,
|
||||
]}
|
||||
>
|
||||
</Result>
|
||||
</div>
|
||||
</Button>,
|
||||
]}
|
||||
>
|
||||
</Result>
|
||||
);
|
||||
} else {
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user