mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(account settings): alert user account is stored locally and specify location
This commit is contained in:
@@ -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' />
|
||||
|
||||
Reference in New Issue
Block a user