Skip to content

Commit

Permalink
Fix uncentered buttons on error page (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
jodichoo authored Dec 21, 2023
1 parent 25cade5 commit ffd3f26
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
5 changes: 5 additions & 0 deletions src/MainWindow/ErrorPage/ErrorPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@
line-height: 1.5rem;
background-color: transparent;
}

.actions {
display: flex;
justify-content: center;
}
}
32 changes: 17 additions & 15 deletions src/MainWindow/ErrorPage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,23 @@ const ErrorPage = () => {
</>
: <h1>Something went wrong! Please try again.</h1>
}
{isCustomScan
? (
<>
<button role="link" id='back-to-home-btn' onClick={handleBackToHome}>
<img src={returnIcon}></img>
&nbsp;Back To Home
</button>
<Button id="replay-btn" type="btn-primary" onClick={replayCustomFlow}>
Replay
</Button>
</>
)
: <Button role="link" type="btn-primary" onClick={handleBackToHome}>
Try Again
</Button>}
<div class="actions">
{isCustomScan
? (
<>
<button role="link" id='back-to-home-btn' onClick={handleBackToHome}>
<img src={returnIcon}></img>
&nbsp;Back To Home
</button>
<Button id="replay-btn" type="btn-primary" onClick={replayCustomFlow}>
Replay
</Button>
</>
)
: <Button role="link" type="btn-primary" onClick={handleBackToHome}>
Try Again
</Button>}
</div>
</div>
);
};
Expand Down

0 comments on commit ffd3f26

Please sign in to comment.