mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Moved native confirmation dialogs to custom component
This commit is contained in:
1 parent
c6aaded26d
commit
ce06731dc8
7 files changed
+101
-13
No files matched your search
@@ -7,6 +7,7 @@ import './index.css'
|
||||
import App from './App.tsx'
|
||||
import { UpdateCheck } from './components/UpdateDialog.tsx'
|
||||
import { AmbientBackdrop } from './components/AmbientBackdrop.tsx'
|
||||
import { ConfirmHost } from './lib/confirm.tsx'
|
||||
|
||||
const queryClient = new QueryClient({
|
||||
defaultOptions: {
|
||||
@@ -25,6 +26,8 @@ createRoot(document.getElementById('root')!).render(
|
||||
<App />
|
||||
{/* Mounted beside App so the update dialog shows even on the picker screen. */}
|
||||
<UpdateCheck />
|
||||
{/* askConfirm()'s dialogs — the app's replacement for window.confirm. */}
|
||||
<ConfirmHost />
|
||||
</QueryClientProvider>
|
||||
</StrictMode>,
|
||||
)
|
||||
Reference in new issue
Block a user