feat(account settings): alert user account is stored locally and specify location

This commit is contained in:
Tom (plebeius.eth)
2024-10-13 17:52:52 +02:00
parent f8c92b3e61
commit 89d37dc029
2 changed files with 10 additions and 0 deletions
@@ -47,6 +47,12 @@
margin-left: 5px;
}
.warning {
font-size: 0.8em;
color: red;
padding: 5px 0;
}
.settingTip {
display: block;
font-size: 0.85em;
@@ -4,6 +4,7 @@ import { createAccount, deleteAccount, exportAccount, importAccount, setAccount,
import stringify from 'json-stringify-pretty-compact';
import styles from './account-settings.module.css';
import useAnonModeStore from '../../../stores/use-anon-mode-store';
import { isAndroid } from '../../../lib/utils/platform';
const AnonMode = () => {
const { t } = useTranslation();
@@ -178,6 +179,9 @@ const AccountSettings = () => {
<button className={styles.createAccount} onClick={_createAccount}>
+
</button>
<div className={styles.warning}>
stored locally ({window.isElectron ? 'this desktop app' : isAndroid ? 'this mobile app' : window.location.hostname}), not synced across devices
</div>
</div>
<div></div>
<textarea value={text} onChange={(e) => setText(e.target.value)} autoCorrect='off' autoComplete='off' spellCheck='false' />