-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#4878 – Add/Replace monomer in sequence mode from library
- Loading branch information
Showing
12 changed files
with
277 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...tcher-macromolecules/src/components/modal/ConfirmationDialog/ConfirmationDialog.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
export const ConfirmationText = styled.p` | ||
padding: 12px; | ||
font-size: 12px; | ||
color: #000; | ||
`; |
23 changes: 23 additions & 0 deletions
23
...ges/ketcher-macromolecules/src/components/modal/ConfirmationDialog/ConfirmationDialog.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ConfirmationDialogProps } from 'components/modal/modalContainer'; | ||
import { Modal } from 'components/shared/modal'; | ||
import { ActionButton } from 'components/shared/actionButton'; | ||
import { ConfirmationText } from './ConfirmationDialog.styles'; | ||
|
||
export const ConfirmationDialog = ({ | ||
confirmationText, | ||
onConfirm, | ||
isModalOpen, | ||
onClose, | ||
}: ConfirmationDialogProps) => { | ||
return ( | ||
<Modal isOpen={isModalOpen} title="Confirm your action" onClose={onClose}> | ||
<Modal.Content> | ||
<ConfirmationText>{confirmationText}</ConfirmationText> | ||
</Modal.Content> | ||
<Modal.Footer> | ||
<ActionButton label="Cancel" clickHandler={onClose} /> | ||
<ActionButton label="Yes" clickHandler={onConfirm!} /> | ||
</Modal.Footer> | ||
</Modal> | ||
); | ||
}; |
1 change: 1 addition & 0 deletions
1
packages/ketcher-macromolecules/src/components/modal/ConfirmationDialog/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './ConfirmationDialog'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.