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:
parent
b284689313
commit
acf3fd5d91
8 changed files with 327 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue