diff options
| author | FifthWit <fifthwitbusiness@gmail.com> | 2025-01-30 10:44:30 -0600 |
|---|---|---|
| committer | FifthWit <fifthwitbusiness@gmail.com> | 2025-01-30 10:44:30 -0600 |
| commit | e40f07211f5f15dcb138e2520a76d13afd3c0cfd (patch) | |
| tree | 46bad6a17e66d55a4a65088c0b6eb8c48641615a /frontend/src/components/MessageDialog.tsx | |
| parent | added prettier for more consistency (diff) | |
| download | lphub-e40f07211f5f15dcb138e2520a76d13afd3c0cfd.tar.gz lphub-e40f07211f5f15dcb138e2520a76d13afd3c0cfd.tar.bz2 lphub-e40f07211f5f15dcb138e2520a76d13afd3c0cfd.zip | |
formatted with prettier
Diffstat (limited to 'frontend/src/components/MessageDialog.tsx')
| -rw-r--r-- | frontend/src/components/MessageDialog.tsx | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/frontend/src/components/MessageDialog.tsx b/frontend/src/components/MessageDialog.tsx index 5c85189..b739ebc 100644 --- a/frontend/src/components/MessageDialog.tsx +++ b/frontend/src/components/MessageDialog.tsx | |||
| @@ -1,29 +1,33 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | 2 | ||
| 3 | import "@css/Dialog.css" | 3 | import '@css/Dialog.css'; |
| 4 | 4 | ||
| 5 | interface MessageDialogProps { | 5 | interface MessageDialogProps { |
| 6 | title: string; | 6 | title: string; |
| 7 | subtitle: string; | 7 | subtitle: string; |
| 8 | onClose: () => void; | 8 | onClose: () => void; |
| 9 | }; | 9 | } |
| 10 | 10 | ||
| 11 | const MessageDialog: React.FC<MessageDialogProps> = ({ title, subtitle, onClose }) => { | 11 | const MessageDialog: React.FC<MessageDialogProps> = ({ |
| 12 | return ( | 12 | title, |
| 13 | <div className='dimmer'> | 13 | subtitle, |
| 14 | <div className='dialog'> | 14 | onClose, |
| 15 | <div className='dialog-element dialog-header'> | 15 | }) => { |
| 16 | <span>{title}</span> | 16 | return ( |
| 17 | </div> | 17 | <div className="dimmer"> |
| 18 | <div className='dialog-element dialog-description'> | 18 | <div className="dialog"> |
| 19 | <span>{subtitle}</span> | 19 | <div className="dialog-element dialog-header"> |
| 20 | </div> | 20 | <span>{title}</span> |
| 21 | <div className='dialog-element dialog-btns-container'> | ||
| 22 | <button onClick={onClose}>Close</button> | ||
| 23 | </div> | ||
| 24 | </div> | ||
| 25 | </div> | 21 | </div> |
| 26 | ) | 22 | <div className="dialog-element dialog-description"> |
| 27 | } | 23 | <span>{subtitle}</span> |
| 24 | </div> | ||
| 25 | <div className="dialog-element dialog-btns-container"> | ||
| 26 | <button onClick={onClose}>Close</button> | ||
| 27 | </div> | ||
| 28 | </div> | ||
| 29 | </div> | ||
| 30 | ); | ||
| 31 | }; | ||
| 28 | 32 | ||
| 29 | export default MessageDialog; | 33 | export default MessageDialog; |