diff --git a/src/popup/components/UserName.jsx b/src/popup/components/UserName.jsx index b4c851a..b7971b1 100644 --- a/src/popup/components/UserName.jsx +++ b/src/popup/components/UserName.jsx @@ -13,6 +13,10 @@ const getName = ({ id, name }) => { return name; }; +const codebattleUrl = 'https://codebattle.hexlet.io/'; + +const getUserLink = id => `${codebattleUrl}users/${id}`; + const UserName = ({ user }) => { const userInfo = isValidUserInfo(user) ? user : 'errorValidInfo'; @@ -25,7 +29,7 @@ const UserName = ({ user }) => { >