fix: adjust error result position (#1683)

This commit is contained in:
Yaodong Yu
2023-03-25 09:36:23 +08:00
committed by GitHub
parent 337ee2faef
commit daf3d374b5

View File

@ -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;