Style userProfile display and editable

This commit is contained in:
Kurt Hutten
2020-11-05 06:47:55 +11:00
parent 217cb31ed2
commit 249dbaba1a
17 changed files with 210 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
import Svg from 'src/components/Svg'
const Button = ({onClick, children}) => {
const Button = ({onClick, iconName, children}) => {
return (
<div>
<button
@@ -8,7 +8,7 @@ const Button = ({onClick, children}) => {
onClick={onClick}
>
{children}
<Svg className="w-6 ml-4" name="pencil" />
<Svg className="w-6 ml-4" name={iconName} />
</button>
</div>
)