generated from MLH-Fellowship/orientation-project-js
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into addEducation
- Loading branch information
Showing
15 changed files
with
1,188 additions
and
2,082 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
export const API_URL = "http://127.0.0.1:5000"; | ||
export const EMAIL_ADDRESS_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; | ||
export const PHONE_NUMBER_REGEX = | ||
/^\+\d{1,3}(\s\d{10}|\s\d{3}-\d{3}-\d{4}|\d{10})$/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { React } from "react"; | ||
|
||
export default function ViewSkills({ skills, onEditSkills }) { | ||
return ( | ||
<div> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Skill</th> | ||
<th>Proficiency</th> | ||
<th>Logo</th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{skills.length > 0 ? ( | ||
skills.map((skill, index) => ( | ||
<tr key={index}> | ||
<td>{skill.name}</td> | ||
<td>{skill.proficiency}</td> | ||
<td> | ||
{skill.logo && ( | ||
<img src={skill.logo} alt={skill.name} width={50} /> | ||
)} | ||
</td> | ||
<td> | ||
<button onClick={() => onEditSkills(skill, index)}> | ||
Edit | ||
</button> | ||
</td> | ||
</tr> | ||
)) | ||
) : ( | ||
<tr> | ||
<td colSpan="4">No skills added yet :(</td> | ||
</tr> | ||
)} | ||
</tbody> | ||
</table> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.