utccf-admin / RuntogetherCCF

A website for memebers of UTCCF to go and vote for committee each year.
1 stars 0 forks source link

RUN-15 Created candidateStatus component and styled it #38

Closed clayychan closed 2 years ago

clayychan commented 2 years ago

Changes

Added candidateStatus component where text changes whether the candidate has nominations or not.

Checklist

linear[bot] commented 2 years ago
RUN-15 Create CandidateStatus Component

Create a `CandidateStatus`component we can use to show whether people have nominations or need nominations. [image.png](https://uploads.linear.app/0c9ac681-6258-4ed3-847e-62ae7bf2ddb7/28c47b47-cc55-4604-882d-563a0d9e6fd1/a9433863-7654-44c6-ba90-cb6d87816a3f) Most of this ticket is in how you style it. It should take in a prop `status `that will change the text displayed based on the status. > `hasNominations` should display: "Already has nominations" > > `needsNominations` should display: "Needs nominations"