Split user.ts into auth.ts and me.ts (#113)

Split user.ts into auth.ts and me.ts
This commit is contained in:
mrdrogdrog 2020-05-31 22:27:12 +02:00 committed by GitHub
parent 1fa8c8ac53
commit db5bec7000
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 53 additions and 51 deletions

View file

@ -1,6 +1,6 @@
import { getMe } from '../api/user'
import { LoginStatus } from '../redux/user/types'
import { getMe } from '../api/me'
import { setUser } from '../redux/user/methods'
import { LoginStatus } from '../redux/user/types'
import { store } from './store'
export const getAndSetUser: () => (Promise<void>) = async () => {