Created
January 28, 2021 08:13
-
-
Save decpk/01702390c2de5efd066aff09a9228530 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const CourseComplexity = function ({ courseComplexityType }) { | |
| const studentTypeClass = ["badge", "badge-pill"]; | |
| if (courseComplexityType === "Beginner") studentTypeClass.push("badge-primary"); | |
| else if (courseComplexityType === "Intermediate") | |
| studentTypeClass.push(" badge-warning"); | |
| return ( | |
| <span className={studentTypeClass.join(" ")}>{courseComplexityType}</span> | |
| ); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment