implement unlocker selection #61

This commit is contained in:
Novattz
2026-01-17 17:56:46 +01:00
parent 6b16ec6168
commit 03cae08df1
4 changed files with 67 additions and 5 deletions

View File

@@ -62,6 +62,16 @@ export interface AppContextType {
type: 'success' | 'error' | 'warning' | 'info',
options?: Record<string, unknown>
) => void
// Unlocker selection
unlockerSelectionDialog: {
visible: boolean
gameId: string | null
gameTitle: string | null
}
handleSelectCreamLinux: () => void
handleSelectSmokeAPI: () => void
closeUnlockerDialog: () => void
}
// Create the context with a default value

View File

@@ -33,6 +33,10 @@ export const AppProvider = ({ children }: AppProviderProps) => {
handleCloseProgressDialog,
handleGameAction: executeGameAction,
handleDlcConfirm: executeDlcConfirm,
unlockerSelectionDialog,
handleSelectCreamLinux,
handleSelectSmokeAPI,
closeUnlockerDialog,
} = useGameActions()
const { toasts, removeToast, success, error: showError, warning, info } = useToasts()
@@ -241,6 +245,12 @@ export const AppProvider = ({ children }: AppProviderProps) => {
// Toast notifications
showToast,
// Unlocker selection
unlockerSelectionDialog,
handleSelectCreamLinux,
handleSelectSmokeAPI,
closeUnlockerDialog,
}
return (