Skip to content

Commit 982438f

Browse files
committed
Reduce confusion with navigation buttons in registration page
The three buttons where about the same epoch, one is about the current cardano epoch and the two other are related to the current epoch of the registration page.
1 parent 32c0a88 commit 982438f

File tree

1 file changed

+17
-13
lines changed
  • mithril-explorer/src/app/registrations

1 file changed

+17
-13
lines changed

mithril-explorer/src/app/registrations/page.js

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -192,23 +192,27 @@ export default function Registrations() {
192192
</Table>
193193
</Row>
194194
<Row>
195-
<div>
196-
{Number.isInteger(registrationEpoch) && (
197-
<ButtonGroup>
198-
<LinkButton href={navigateToPreviousUrl}>
199-
Previous Epoch ({registrationEpoch - 1})
200-
</LinkButton>
195+
{Number.isInteger(registrationEpoch) && (
196+
<>
197+
<Col xs={12} sm={12} md={3} lg={2} className="d-grid mb-1">
201198
<LinkButton
202199
href={navigateToCurrentUrl}
203200
disabled={currentEpoch === undefined || currentEpoch === registrationEpoch}>
204-
Current Epoch ({currentEpoch})
205-
</LinkButton>
206-
<LinkButton href={navigateToNextUrl} disabled={currentEpoch <= registrationEpoch}>
207-
Next Epoch ({registrationEpoch + 1})
201+
Current Cardano Epoch ({currentEpoch})
208202
</LinkButton>
209-
</ButtonGroup>
210-
)}
211-
</div>
203+
</Col>
204+
<Col xs={12} sm={12} md={6} lg={4} className="d-grid mb-1">
205+
<ButtonGroup>
206+
<LinkButton href={navigateToPreviousUrl}>
207+
Previous Registration Epoch ({registrationEpoch - 1})
208+
</LinkButton>
209+
<LinkButton href={navigateToNextUrl} disabled={currentEpoch <= registrationEpoch}>
210+
Next Registration Epoch ({registrationEpoch + 1})
211+
</LinkButton>
212+
</ButtonGroup>
213+
</Col>
214+
</>
215+
)}
212216
</Row>
213217
{isLoading ? (
214218
<Spinner animation="grow" />

0 commit comments

Comments
 (0)