mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Implemented new dark theme
This commit is contained in:
@ -1,21 +1,20 @@
|
||||
import { ContextsV0 } from './v0'
|
||||
import { ContextsV1 } from './v1'
|
||||
import { ContextsV2 } from './v2'
|
||||
|
||||
const contextsMigration = {
|
||||
1: (state: ContextsV0) => {
|
||||
return (state = {
|
||||
1: (state: ContextsV0): ContextsV1 => {
|
||||
return {
|
||||
...state,
|
||||
// @ts-ignore
|
||||
mePage: {
|
||||
lists: { shown: false },
|
||||
announcements: { shown: false, unread: 0 }
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
2: (state: ContextsV1) => {
|
||||
// @ts-ignore
|
||||
delete state.mePage
|
||||
return state
|
||||
2: (state: ContextsV1): ContextsV2 => {
|
||||
const { mePage, ...rest } = state
|
||||
return rest
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user