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

Dashboard navbar/frontend #25

Merged
merged 17 commits into from
Apr 21, 2024
Merged

Dashboard navbar/frontend #25

merged 17 commits into from
Apr 21, 2024

Conversation

MerajSharifi
Copy link
Collaborator

@MerajSharifi MerajSharifi commented Apr 19, 2024

Description

I pushed and merged my child's branch to this featured branch (after the edits/comments done). and all works correctly.

Fixes # (issue)

Demo

Kapture 2024-04-19 at 09 33 16

Checklist

  • I have performed a self-review of my own code
  • I have followed the name conventions for CSS Classnames and filenames, Components names and filenames, Style filenames, if you are in doubt check the the project README.MD and here https://github.com/HackYourFuture-CPH/curriculum/blob/master/review/review-checklist.md
  • I have commented my code, particularly in hard-to-understand areas, if you code was simple enough mark the box anyway
  • I have made corresponding changes to the documentation, if you code was simple enough mark the box anyway
  • This PR is ready to be merged and not breaking any other functionality

@MerajSharifi MerajSharifi requested a review from a team as a code owner April 19, 2024 07:42
Copy link
Contributor

@ddobby94 ddobby94 left a comment

Choose a reason for hiding this comment

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

Nice progress, I've left only smaller comments regarding code readability :)

aria-describedby="modal-modal-description"
>
<Box sx={style} className="modal-container">
{' '}
Copy link
Contributor

Choose a reason for hiding this comment

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

We can delete this line

@@ -13,28 +15,59 @@ export const AddTeamMemberModal = ({
if (!showAddModal) {
return null;
}

const style = {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can be moved to the css file 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

You already have the .modal-container css class

list-style-type: none; /* Remove default list styles */
padding: 0; /* Remove default padding */
background: var(--primary-background-color);
padding: 20px 20px 20px 20px;
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a short hand for this:

Suggested change
padding: 20px 20px 20px 20px;
padding: 20px;

flex-direction: column;
margin-top: 20px;
background-color: #fff;
padding: 20px 20px;
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
padding: 20px 20px;
padding: 20px;

display: flex;
flex-direction: column;
flex: 1 0 0;
margin-left: 30px;
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
margin-left: 30px;
margin: 0 30px;


<div>
<ul>
{teamMembers.map((member) => (
Copy link
Contributor

Choose a reason for hiding this comment

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

Very nice 😌

}) => {
return (
<li key={member.member_id}>
<div style={{ display: 'flex', alignItems: 'center' }}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this to a css class.
None of the companies are using this syntax, since inline css is very difficult to debug & mantain.

@MerajSharifi MerajSharifi merged commit 270dd9e into main Apr 21, 2024
2 of 4 checks passed
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.

None yet

3 participants