mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-26 04:44:47 +00:00
refactor: with styled-components
This commit is contained in:
42 files changed
+845
-934
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user