-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2790-rename-ErrorModal-to-InfoModal-and-change-modal-text
- Loading branch information
1 parent
b67bb78
commit 6ab178d
Showing
12 changed files
with
47 additions
and
55 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
21 changes: 0 additions & 21 deletions
21
packages/ketcher-react/src/components/ErrorModal/PasteErrorModalBody/PasteErrorModalBody.tsx
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
packages/ketcher-react/src/components/ErrorModal/constants.ts
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
packages/ketcher-react/src/components/InfoModal/PasteErrorModalBody/PasteErrorModalBody.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,17 @@ | ||
import { pasteErrorText, shortcut } from '../constants' | ||
|
||
import styles from './PasteErrorModalBody.module.less' | ||
|
||
export const PasteErrorModalBody = (): JSX.Element => { | ||
return ( | ||
<div className={styles.pasteErrorModalBody}> | ||
<div>{pasteErrorText}</div> | ||
<div className={styles.shortcutsBlock}> | ||
<div className={styles.shortcuts}> | ||
<div className={styles.shortcut}>{shortcut.hotKey}</div> | ||
<div>{shortcut.label}</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} |
File renamed without changes.
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,9 @@ | ||
export const pasteErrorText = | ||
"Your browser doesn't allow pasting clipboard content via button. Please use shortcut instead." | ||
|
||
export const shortcut = { hotKey: 'CTRL/Cmd + V', label: 'for paste' } | ||
|
||
export const error = { | ||
message: 'Error Message', | ||
close: 'Close' | ||
} |
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
File renamed without changes
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 |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
|
||
export * from './Icon' | ||
export * from './Buttons' | ||
export * from './ErrorModal' | ||
export * from './InfoModal' |