Created
September 10, 2019 01:26
-
-
Save alangpierce/6e89b25fd6db4ca3b814378b9d1ba93b 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
export interface ActiveEnzymeProps { | |
color: string; | |
name: string; | |
onRemove: () => void; | |
} | |
export default function ActiveEnzyme({color, name, onRemove}: ActiveEnzymeProps): JSX.Element { | |
return ( | |
<tr onClick={onRemove}> | |
<td className="mono">{name}</td> | |
<td> | |
<div style={{backgroundColor: color}} className="swatch" /> | |
</td> | |
</tr> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment