mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(account settings): improve UI
This commit is contained in:
@@ -34,8 +34,10 @@
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.deleteAccount, .deleteAccount button {
|
||||
.deleteAccount {
|
||||
color: red;
|
||||
float: right;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.setting .createAccount {
|
||||
|
||||
@@ -165,16 +165,11 @@ const AccountSettings = () => {
|
||||
<div></div>
|
||||
<textarea value={text} onChange={(e) => setText(e.target.value)} autoCorrect='off' autoComplete='off' spellCheck='false' />
|
||||
<div>
|
||||
<button onClick={saveAccount}>{t('save')}</button> <button onClick={() => setText(accountJson)}>{t('reset')}</button>
|
||||
</div>
|
||||
<div>
|
||||
<button onClick={_importAccount}>{t('import')}</button> {t('full_account_data')}
|
||||
</div>
|
||||
<div>
|
||||
<button onClick={_exportAccount}>{t('export')}</button> {t('full_account_data')}
|
||||
</div>
|
||||
<div className={styles.deleteAccount}>
|
||||
<button onClick={() => _deleteAccount(account?.name)}>{t('delete')}</button> {t('this_account')}
|
||||
<button onClick={saveAccount}>{t('save')}</button> <button onClick={() => setText(accountJson)}>{t('reset')}</button>{' '}
|
||||
<button onClick={_importAccount}>{t('import')}</button> <button onClick={_exportAccount}>{t('export')}</button>{' '}
|
||||
<button className={styles.deleteAccount} onClick={() => _deleteAccount(account?.name)}>
|
||||
delete account
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user