Merge pull request #542 from kinode-dao/dr/add-back-button-register

register flow: add back button to UI where relevant
This commit is contained in:
doria 2024-09-18 02:18:07 +09:00 committed by GitHub
commit e81c629ff4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 55 additions and 42 deletions

View File

@ -244,3 +244,10 @@
button.secondary {
width: 100%;
}
button.back {
float: left;
width: auto !important;
padding: 5px !important;
border: none !important;
}

View File

@ -95,6 +95,7 @@ function CommitDotOsName({
return (
<div className="container fade-in">
<button onClick={() => history.back()} className="button secondary">🔙</button>
<div className="section">
{
<form className="form" onSubmit={handleCommit}>

View File

@ -92,10 +92,12 @@ function ImportKeyfile({
return (
<div className="container fade-in">
<button onClick={() => history.back()} className="button secondary">🔙</button>
<div className="section">
{loading ? (
<Loader msg="Setting up node..." />
) : (
<>
<form className="form" onSubmit={handleImportKeyfile}>
<div className="form-group">
<h4 className="form-label">1. Upload Keyfile</h4>
@ -141,6 +143,7 @@ function ImportKeyfile({
options, please go back and select "Reset OsName".
</p>
</form>
</>
)}
</div>
</div>

View File

@ -118,6 +118,7 @@ function MintCustom({
return (
<div className="container fade-in">
<button onClick={() => history.back()} className="button secondary">🔙</button>
<div className="section">
{
<form className="form" onSubmit={handleMint}>

View File

@ -119,6 +119,7 @@ function ResetKnsName({
return (
<div className="container fade-in">
<button onClick={() => history.back()} className="button secondary back">🔙</button>
<div className="section">
{
<form className="form" onSubmit={handleResetRecords}>