fixed most of issue 189 #190

Merged
Irev-Dev merged 4 commits from kurt/189 into main 2020-12-30 02:48:39 +01:00
2 changed files with 32 additions and 0 deletions
Showing only changes of commit fff0956746 - Show all commits

View File

@@ -130,6 +130,23 @@ const PartProfile = ({
>
{isEditable ? 'Save Details' : 'Edit Details'}
</Button>
{isEditable && (
<Button
className="mt-4 ml-auto shadow-md hover:shadow-lg bg-indigo-200 relative z-20 w-full justify-end"
shouldAnimateHover
iconName="x"
onClick={() =>
navigate(
routes.part({
userName: userPart.userName,
partTitle: part?.title,
})
)
}
>
Cancel
</Button>
)}
<Button
className="mt-4 ml-auto shadow-md hover:shadow-lg bg-red-200 relative z-20 w-full justify-end"
shouldAnimateHover

View File

@@ -322,6 +322,21 @@ const Svg = ({ name, className: className2, strokeWidth = 2 }) => {
/>
</svg>
),
x: (
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={strokeWidth}
d="M6 18L18 6M6 6l12 12"
/>
</svg>
),
}
return <div className={className2 || 'h-10 w-10'}>{svgs[name]}</div>