refactor: with styled-components

This commit is contained in:
Daniel Soares committed 2021-12-18 00:50:54 -03:00
1 parent 5138b4dfc2
commit 47d03b6d73
42 files changed
+845 -934

No files matched your search

+5 -11
View File
@@ -40,23 +40,17 @@ export function SaveChangesAlert({
setData(initialData)
}
return (
<Wrapper show={hasUnsavedChanges}>
return hasUnsavedChanges ? (
<Wrapper>
You have unsaved changes.
<ButtonsGroup>
<Button
size="small"
styleSchema="square"
colorSchema="rose"
outline
onClick={() => handleCancel()}
>
<Button size="small" outlined onClick={() => handleCancel()}>
Cancel
</Button>
<Button size="small" styleSchema="square" colorSchema="slate" onClick={() => handleSave()}>
<Button size="small" onClick={() => handleSave()}>
Save
</Button>
</ButtonsGroup>
</Wrapper>
)
) : null
}