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

#300 load more information on profile page #303

Merged
merged 4 commits into from
Nov 15, 2023

Conversation

Lvyshnevska
Copy link
Collaborator

Read More component has been updated with Ant Design ellipsis according to design and clarified requirements.

@Lvyshnevska Lvyshnevska added this to the Sprint 7 milestone Nov 13, 2023
@Lvyshnevska Lvyshnevska self-assigned this Nov 13, 2023
@Lvyshnevska Lvyshnevska linked an issue Nov 13, 2023 that may be closed by this pull request
</span>
)}
</p>) : null
<>
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need to add a fragment if there is only one element

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed

Comment on lines 29 to 33
? {
rows: 6,
expandable: true,
symbol: ellipsisSymbol,
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we move it to constant with a meaningful name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should we do it if it is Ant Design component and its structure?

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

const { id } = useParams();
const urlProfile = `${process.env.REACT_APP_BASE_API_URL}/api/profiles/${id}`;

async function fetcher(url) {
const headers = {
'Content-Type': 'application/json',
};
if (isAuthorized) {
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 use isAuthorized in the component? If no could we remove it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's passed to child components

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.

LGTM! Left couple comments

@Lvyshnevska Lvyshnevska merged commit c12c12b into develop Nov 15, 2023
4 checks passed
@Lvyshnevska Lvyshnevska deleted the #300-LoadMoreInformationOnProfilePage branch November 15, 2023 16:21
@Lvyshnevska Lvyshnevska linked an issue Nov 30, 2023 that may be closed by this pull request
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.

[Profile] Expand text blocks for detailed information Load more information on the profile page
3 participants