1
0
Fork 0

feat(components): Updated simon linedrawing with work by Ennis

This commit is contained in:
Joost De Cock 2020-01-25 17:07:27 +01:00
parent dcb9c23861
commit 7da97aa781
3 changed files with 131 additions and 19 deletions

View file

@ -13,7 +13,7 @@ const LineDrawing = props => {
attr.width = props.size
attr.height = props.size
}
return <svg {...attr}>{patterns[props.pattern].map(el => el)}</svg>
return <svg {...attr}>{patterns[props.pattern] || null}</svg>
}
LineDrawing.propTypes = {