Add new user-settings component/route, add options to change name, bio, avatar, banner and bg. Add those options to api service and backend interactor service.

This commit is contained in:
Shpuld Shpuldson 2017-08-02 22:09:40 +03:00
parent b284689313
commit acf3fd5d91
8 changed files with 327 additions and 1 deletions

View file

@ -38,6 +38,10 @@ const backendInteractorService = (credentials) => {
const register = (params) => apiService.register(params)
const updateAvatar = ({params}) => apiService.updateAvatar({credentials, params})
const updateBg = ({params}) => apiService.updateBg({credentials, params})
const updateBanner = ({params}) => apiService.updateBanner({credentials, params})
const updateProfile = ({params}) => apiService.updateProfile({credentials, params})
const externalProfile = (profileUrl) => apiService.externalProfile(profileUrl)
const backendInteractorServiceInstance = {
@ -53,6 +57,9 @@ const backendInteractorService = (credentials) => {
fetchMutes,
register,
updateAvatar,
updateBg,
updateBanner,
updateProfile,
externalProfile
}