diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-22 13:59:12 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 12:59:12 +0300 |
| commit | 69aeb7889ac136a8e4fbe7de1330298e30345479 (patch) | |
| tree | 6b2cd2d420105dc7ffad3c3649df359f634cae77 /frontend/src/components/ConfirmDialog.tsx | |
| parent | feat/rankings: update wr for 3 maps (#279) (diff) | |
| download | lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.tar.gz lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.tar.bz2 lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.zip | |
feat/frontend: switch to vite, update node to v22 (#281)
Diffstat (limited to 'frontend/src/components/ConfirmDialog.tsx')
| -rw-r--r-- | frontend/src/components/ConfirmDialog.tsx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/frontend/src/components/ConfirmDialog.tsx b/frontend/src/components/ConfirmDialog.tsx index 44a653b..d8784d2 100644 --- a/frontend/src/components/ConfirmDialog.tsx +++ b/frontend/src/components/ConfirmDialog.tsx | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | import React from 'react'; | 1 | import React from "react"; |
| 2 | 2 | ||
| 3 | import "@css/Dialog.css" | 3 | import "@css/Dialog.css" |
| 4 | 4 | ||
| @@ -10,22 +10,22 @@ interface ConfirmDialogProps { | |||
| 10 | }; | 10 | }; |
| 11 | 11 | ||
| 12 | const ConfirmDialog: React.FC<ConfirmDialogProps> = ({ title, subtitle, onConfirm, onCancel }) => { | 12 | const ConfirmDialog: React.FC<ConfirmDialogProps> = ({ title, subtitle, onConfirm, onCancel }) => { |
| 13 | return ( | 13 | return ( |
| 14 | <div className='dimmer'> | 14 | <div className='dimmer'> |
| 15 | <div className='dialog'> | 15 | <div className='dialog'> |
| 16 | <div className='dialog-element dialog-header'> | 16 | <div className='dialog-element dialog-header'> |
| 17 | <span>{title}</span> | 17 | <span>{title}</span> |
| 18 | </div> | ||
| 19 | <div className='dialog-element dialog-description'> | ||
| 20 | <span>{subtitle}</span> | ||
| 21 | </div> | ||
| 22 | <div className='dialog-element dialog-btns-container'> | ||
| 23 | <button onClick={onCancel}>Cancel</button> | ||
| 24 | <button onClick={onConfirm}>Confirm</button> | ||
| 25 | </div> | ||
| 26 | </div> | ||
| 27 | </div> | 18 | </div> |
| 28 | ) | 19 | <div className='dialog-element dialog-description'> |
| 20 | <span>{subtitle}</span> | ||
| 21 | </div> | ||
| 22 | <div className='dialog-element dialog-btns-container'> | ||
| 23 | <button onClick={onCancel}>Cancel</button> | ||
| 24 | <button onClick={onConfirm}>Confirm</button> | ||
| 25 | </div> | ||
| 26 | </div> | ||
| 27 | </div> | ||
| 28 | ) | ||
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | export default ConfirmDialog; | 31 | export default ConfirmDialog; |