mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
More visually stable me page
This commit is contained in:
16
src/utils/migrations/contexts/migration.ts
Normal file
16
src/utils/migrations/contexts/migration.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { ContextsV0 } from './v0'
|
||||
|
||||
const contextsMigration = {
|
||||
1: (state: ContextsV0) => {
|
||||
return (state = {
|
||||
...state,
|
||||
// @ts-ignore
|
||||
mePage: {
|
||||
lists: { shown: false },
|
||||
announcements: { shown: false, unread: 0 }
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export default contextsMigration
|
Reference in New Issue
Block a user