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) { 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;