-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#269 implement functionality of profile details #286
#269 implement functionality of profile details #286
Conversation
'Соціальні мережі': [ | ||
{ | ||
name: 'facebook', | ||
url: '', | ||
svgPath: <FacebookSvg />, | ||
svgPath: <img src={`${process.env.PUBLIC_URL}/svg/facebook.svg`} />, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are pros and cons for both options using SVG. Did you verify that we have PUBLIC_URL
on devci? Does it work in CRA w/o REACT_APP
prefix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dev team still has no information about it. PUBLIC_URL is used not only in this component. We'll made changes if needed.
return res.json(); | ||
}) | ||
.catch((error) => { | ||
if (error.status === 401) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to log error only if 401 occur?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This component will be updated as soon as appropriate changes on back-end will be made. And I assume that this code will be removed.
FrontEnd/src/hooks/useUser.js
Outdated
headers: { | ||
'Authorization': `Token ${authToken}`, | ||
}, | ||
}).then(res => res.json()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add error handling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please double-check whether env variables like PUBLIC_URL
are added and work on devci.
…/github.com/ita-social-projects/Forum into #269-ImplementFunctionalityOfProfileDetails
Profile Detail page created and joined to API as it possible.
A lot of points are postponed because of absence related fields in db.