1
0
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:
Zhiyuan Zheng
2022-02-12 14:51:01 +01:00
parent 50141b2963
commit 6f0c318d06
108 changed files with 863 additions and 571 deletions

View File

@ -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
}
}