Skip to content
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

Merged
merged 54 commits into from
Nov 9, 2023

Conversation

Lvyshnevska
Copy link
Collaborator

Profile Detail page created and joined to API as it possible.
A lot of points are postponed because of absence related fields in db.

'Соціальні мережі': [
{
name: 'facebook',
url: '',
svgPath: <FacebookSvg />,
svgPath: <img src={`${process.env.PUBLIC_URL}/svg/facebook.svg`} />,
Copy link
Collaborator

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?

Copy link
Collaborator Author

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) {
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

headers: {
'Authorization': `Token ${authToken}`,
},
}).then(res => res.json()),
Copy link
Collaborator

@popovycholeg popovycholeg Nov 8, 2023

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Collaborator

@popovycholeg popovycholeg left a 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.

@Lvyshnevska Lvyshnevska merged commit 65e1c60 into develop Nov 9, 2023
4 checks passed
@Lvyshnevska Lvyshnevska deleted the #269-ImplementFunctionalityOfProfileDetails branch November 9, 2023 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FE] View contacts (email, phone number) [FE] Implement functionality of the profile details
3 participants