mirror of
https://github.com/Novattz/creamlinux-installer.git
synced 2026-01-27 22:02:50 -05:00
implement unlocker selection #61
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user