-
Notifications
You must be signed in to change notification settings - Fork 0
Components
gabriellamingozzi edited this page Apr 8, 2021
·
19 revisions
Enables a user to create a kudo
props: getKudos, optional: toggleShowAddKudos
Used in Home.js and Navbar.js
<AddKudo getKudos={props.getKudos}/>Enables user to change their avatar utilizing avatar presets
Properly displays an emoji in react (w/ proper attributes)
props: symbol, label
used whenever an emoji is needed
Displays a kudo
props: to, from, message, key
used in Home.js
{kudos && employees[5] ? kudos.map((kudo, index) => { return <Kudo to={employees[kudo.to].name} from={employees[kudo.from].name} message={kudo.kudo} key={index}/> }) : 'loading' }Navbar component
props: logout(logout function passed down from App.js)
Rockstar component
props: none
Displays rockstar of the month on the home page.
Uses the get_rockstar, profile_incoming, and uid_map_name endpoints