1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
xmflsct
2022-12-11 01:37:26 +01:00
parent 44379504eb
commit 73eb695cfc
8 changed files with 61 additions and 43 deletions

View File

@ -1,6 +1,7 @@
import { ContextsV0 } from './v0'
import { ContextsV1 } from './v1'
import { ContextsV2 } from './v2'
import { ContextsV3 } from './v3'
const contextsMigration = {
1: (state: ContextsV0): ContextsV1 => {
@ -15,7 +16,12 @@ const contextsMigration = {
2: (state: ContextsV1): ContextsV2 => {
const { mePage, ...rest } = state
return rest
},
3: (state: ContextsV2): ContextsV3 => {
return { ...state, previousSegment: 'Local' }
}
}
export { ContextsV3 as ContextsLatest }
export default contextsMigration