mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
no need for window reload
This commit is contained in:
@@ -12,15 +12,7 @@ const AnonMode = () => {
|
|||||||
return (
|
return (
|
||||||
<div className={styles.anonMode}>
|
<div className={styles.anonMode}>
|
||||||
<label>
|
<label>
|
||||||
<input
|
<input type='checkbox' checked={anonMode} onChange={(e) => setAnonMode(e.target.checked)} /> anon mode
|
||||||
type='checkbox'
|
|
||||||
checked={anonMode}
|
|
||||||
onChange={(e) => {
|
|
||||||
setAnonMode(e.target.checked);
|
|
||||||
window.location.reload();
|
|
||||||
}}
|
|
||||||
/>{' '}
|
|
||||||
anon mode
|
|
||||||
</label>
|
</label>
|
||||||
<span className={styles.settingTip}>Automatically use a different user ID in each thread</span>
|
<span className={styles.settingTip}>Automatically use a different user ID in each thread</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user