c2siorg / Codelabz

Codelabz
Apache License 2.0
12 stars 51 forks source link

Created Dynamic content for organization in UserProfile #21

Open Shubh942 opened 9 months ago

Shubh942 commented 9 months ago

Creating dynamic content in organisation section, discription and social media link in profile page

Description

The React useEffect hook in the provided code processes the props object, specifically the profileData property, mapping over the organizations array to create an array named orgdata. Each element in orgdata is an object with a name property derived from the organizations array, and an img property containing an array with a single image represented by the OrgUser variable. The resulting orgdata array is then passed to a function, likely named setUpOrganizations. This effect is triggered on component render and whenever there is a change in the props object, as indicated by [props] in the dependency array.

Extract the detail from props and rendered it in component.

Related Issue

Resolves issue #17

Motivation and Context

Data should be always dynamic in nature. As it should be always retreived from database.

Screenshots or GIF (In case of UI changes):

image

Data from database

image

Link attach in social media section

image

Types of changes

Checklist:

Shubh942 commented 9 months ago

@shivareddy6 @Maahi10001 @ABHISHEK-PANDEY2 could you please review the PR