Skip to content

Commit ffd3f26

Browse files
authored
Fix uncentered buttons on error page (#84)
1 parent 25cade5 commit ffd3f26

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

src/MainWindow/ErrorPage/ErrorPage.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@
2828
line-height: 1.5rem;
2929
background-color: transparent;
3030
}
31+
32+
.actions {
33+
display: flex;
34+
justify-content: center;
35+
}
3136
}

src/MainWindow/ErrorPage/index.jsx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,23 @@ const ErrorPage = () => {
5050
</>
5151
: <h1>Something went wrong! Please try again.</h1>
5252
}
53-
{isCustomScan
54-
? (
55-
<>
56-
<button role="link" id='back-to-home-btn' onClick={handleBackToHome}>
57-
<img src={returnIcon}></img>
58-
&nbsp;Back To Home
59-
</button>
60-
<Button id="replay-btn" type="btn-primary" onClick={replayCustomFlow}>
61-
Replay
62-
</Button>
63-
</>
64-
)
65-
: <Button role="link" type="btn-primary" onClick={handleBackToHome}>
66-
Try Again
67-
</Button>}
53+
<div class="actions">
54+
{isCustomScan
55+
? (
56+
<>
57+
<button role="link" id='back-to-home-btn' onClick={handleBackToHome}>
58+
<img src={returnIcon}></img>
59+
&nbsp;Back To Home
60+
</button>
61+
<Button id="replay-btn" type="btn-primary" onClick={replayCustomFlow}>
62+
Replay
63+
</Button>
64+
</>
65+
)
66+
: <Button role="link" type="btn-primary" onClick={handleBackToHome}>
67+
Try Again
68+
</Button>}
69+
</div>
6870
</div>
6971
);
7072
};

0 commit comments

Comments
 (0)