Skip to content

Instantly share code, notes, and snippets.

@alangpierce
Created September 10, 2019 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alangpierce/6e89b25fd6db4ca3b814378b9d1ba93b to your computer and use it in GitHub Desktop.
Save alangpierce/6e89b25fd6db4ca3b814378b9d1ba93b to your computer and use it in GitHub Desktop.
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