update settings

This commit is contained in:
plebeius.eth
2024-05-15 21:20:14 +02:00
parent 4e68b0c1c3
commit 7d9fd2cce7
9 changed files with 299 additions and 61 deletions
@@ -1,3 +1,37 @@
.setting {
margin-left: 10px;
}
.setting button {
cursor: pointer;
text-transform: capitalize;
}
.cryptoAddressInput input[type="text"] {
padding: 2px 0;
margin-bottom: 5px;
outline: none;
border: 1px solid #aaa;
padding: 2px 4px 3px;
}
.infoButton {
padding: 0 5px;
}
.cryptoAddressInfo {
word-break: break-word;
}
.cryptoAddressInfo ol {
padding-bottom: 10px;
padding-left: 15px;
}
.saveButton {
margin: 0 5px;
}
.red {
color: red;
}
@@ -109,12 +109,12 @@ const CryptoAddressSetting = () => {
defaultValue={cryptoState.cryptoAddress || (account?.author?.shortAddress.includes('.') ? account.author.shortAddress : '')}
onChange={(e) => setCryptoState((prevState) => ({ ...prevState, cryptoAddress: e.target.value }))}
/>
<button className={styles.saveButton} onClick={saveCryptoAddress}>
{t('save')}
</button>
<button className={styles.infoButton} onClick={() => setShowCryptoAddressInfo(!showCryptoAddressInfo)}>
{showCryptoAddressInfo ? 'x' : '?'}
</button>
<button className={styles.button} onClick={saveCryptoAddress}>
{t('save')}
</button>
{showCryptoAddressInfo && (
<div className={styles.cryptoAddressInfo}>
steps to set a .eth user address: