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

redesign profile page #43

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

redesign profile page #43

wants to merge 14 commits into from

Conversation

itsgurmannatsohal
Copy link
Collaborator

No description provided.

@@ -11,7 +11,7 @@ const Issue = ({ Card }) => {
>
<h4>
<b>
{Card.repoName} - {Card.tag}
//{Card.repoName} - {Card.tag}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did we hardcode this?

@@ -67,16 +61,21 @@ const Profile = ({ uname, aname, role, eno, contact, email, pfp }) => {
}}
/>
</div>
)}
)} */}
Copy link
Contributor

Choose a reason for hiding this comment

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

remove unused (commented) code

Comment on lines 69 to 73
{editProfile === true ? (
<label className="role">{role}</label>
) : (
true
)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{editProfile === true ? (
<label className="role">{role}</label>
) : (
true
)}
{editProfile === true && (
<label className="role">{role}</label>
)}

true
)}
</div>
{editProfile }
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this?

<label className="details">{uname}</label>
</div>
<div className="rankHandle">
<label className="userHandle">()</label>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these values hardcoded as empty?

</div>
<div className="rankHandle">
<label className="userHandle">()</label>
<label className="userHandle">#RANK</label>
Copy link
Contributor

Choose a reason for hiding this comment

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

Fetch actual rank here

Comment on lines 3 to 22
const Issue = ({ Card }) => {
return (
<div className="pullbox">
<div
style={{
textAlign: "center",
margin: "1rem",
}}
>
<h4>
<b>

</b>
</h4>

</div>
<div className="mentora"></div>
</div>
);
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Render data here

Comment on lines 26 to 27
// top: -10rem;
// left: 1rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

remove commented code

.image {
}
.image {
position: relative;
left: 5%;
top: 2%;
//margin-left: 5%;
Copy link
Contributor

Choose a reason for hiding this comment

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

.

const PendingList= ({ list, callback }) => {
return (
list.map((Card, i) => {
return <PendingCard Card={Card} key={i} callback={callback} />;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we passing callback prop?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also props are incorrect

const MergedList= ({ list, callback }) => {
return (
list.map((Card, i) => {
return <MergedCard Card={Card} key={i} callback={callback} />;
Copy link
Contributor

Choose a reason for hiding this comment

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

incorrect props

</h4>

</div>
<div className="mentora"></div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo mentora

Comment on lines 59 to 67
const issues = response.data.assignedIssues;
let repos = [];
if (issues != undefined || issues != null)
issues.forEach(async (element) => {
var repoInfo = element.issue.split("/");
repos = JSON.parse(JSON.stringify(repos));
repos.push({
});
setPending(JSON.parse(JSON.stringify(repos)));
Copy link
Contributor

Choose a reason for hiding this comment

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

backend only sends one issue. Assigned issue can only be one at a time. Also property is incorrect. Use response.data.user.assignedIssue

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.

4 participants