[Glitch] Profile redesign: Persist filter setting
Port f2f07404b5bacd2d1a17e6b08fd251b4767dd2b2 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
69b70d48c6
commit
6ddebfdd04
@ -27,8 +27,8 @@ export const AccountTimelineProvider: FC<{
|
|||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
}> = ({ accountId, children }) => {
|
}> = ({ accountId, children }) => {
|
||||||
const storageOptions = {
|
const storageOptions = {
|
||||||
type: 'session',
|
type: 'local',
|
||||||
prefix: `filters-${accountId}:`,
|
prefix: 'account-filters',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
const [boosts, setBoosts] = useStorageState<boolean>(
|
const [boosts, setBoosts] = useStorageState<boolean>(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user