import { useDispatch, useSelector } from "react-redux"; import { setPreferences, UserPreferences } from "State/Login"; import { RootState } from "State/Store"; import "./Preferences.css"; const PreferencesPage = () => { const dispatch = useDispatch(); const perf = useSelector(s => s.login.preferences); return (

Preferences

Theme
Automatically load media
Media in posts will automatically be shown, if disabled only the link will show
dispatch(setPreferences({ ...perf, autoLoadMedia: e.target.checked }))} />
Enable reactions
Reactions will be shown on every page, if disabled no reactions will be shown
dispatch(setPreferences({ ...perf, enableReactions: e.target.checked }))} />
Confirm reposts
Reposts need to be manually confirmed
dispatch(setPreferences({ ...perf, confirmReposts: e.target.checked }))} />
Debug Menus
Shows extra options to help with debugging data
dispatch(setPreferences({ ...perf, showDebugMenus: e.target.checked }))} />
) } export default PreferencesPage;