diff --git a/src/api/UsersServiceAPI.js b/src/api/UsersServiceAPI.js index 2154513..4edf1eb 100644 --- a/src/api/UsersServiceAPI.js +++ b/src/api/UsersServiceAPI.js @@ -31,7 +31,7 @@ class UsersService { return data; } - getMe = async () => { + getSelfInfo = async () => { const {data} = await http.get(`${ROOT_URL}/me`); return data; } @@ -69,8 +69,8 @@ class UsersService { * @param {string} login - Логин пользователя * @param {UpdateUserOptions} updateOptions - настройки для обновления пользователя */ - update = async (login, updateOptions) => { - const {data} = await http.put(ROOT_URL, {...updateOptions, login}); + update = async (user) => { + const {data} = await http.put(ROOT_URL, user); return data; } diff --git a/src/app.css b/src/app.css index 941f7fe..b0df30c 100644 --- a/src/app.css +++ b/src/app.css @@ -8,7 +8,7 @@ html, body { height: 100%; } -.Page > div:not(.Login__page) { +.Page > div:first-child:not(.Login__page) { padding-top: 74px; } diff --git a/src/app.html b/src/app.html index 7925079..5b31354 100644 --- a/src/app.html +++ b/src/app.html @@ -390,6 +390,21 @@ + + +