feat(ui): reusable app-styled confirm dialog, replacing window.confirm
Add a promise-based ConfirmProvider + useConfirm() hook (built on the Modal shell, liquid-glass styling, danger variant, Esc/backdrop = cancel, Enter = confirm) so confirmations match the app instead of the native browser dialog. Wire it in at the app root and replace both window.confirm call sites (playlist delete, channel unsubscribe). Trilingual common.confirm/confirmTitle strings.
This commit is contained in:
parent
50bc35d78f
commit
48cb11434d
7 changed files with 103 additions and 9 deletions
|
|
@ -3,6 +3,8 @@
|
|||
"termsOfService": "Felhasználási feltételek",
|
||||
"close": "Bezárás",
|
||||
"cancel": "Mégse",
|
||||
"confirm": "Megerősítés",
|
||||
"confirmTitle": "Biztos vagy benne?",
|
||||
"save": "Mentés",
|
||||
"loading": "Betöltés…",
|
||||
"language": "Nyelv",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue