mirror of
https://github.com/Novattz/creamlinux-installer.git
synced 2026-05-02 04:52:03 -04:00
stuff
This commit is contained in:
@@ -26,6 +26,14 @@ export interface SmokeAPISettingsDialogState {
|
||||
gameTitle: string
|
||||
}
|
||||
|
||||
export interface RatingDialogState {
|
||||
visible: boolean
|
||||
gameId: string
|
||||
gameTitle: string
|
||||
unlocker: 'creamlinux' | 'smokeapi'
|
||||
steamPath: string
|
||||
}
|
||||
|
||||
// Define the context type
|
||||
export interface AppContextType {
|
||||
// Game state
|
||||
@@ -56,6 +64,22 @@ export interface AppContextType {
|
||||
handleSmokeAPISettingsOpen: (gameId: string) => void
|
||||
handleSmokeAPISettingsClose: () => void
|
||||
|
||||
// SmokeAPI votes dialog
|
||||
smokeAPIVotesDialog: {
|
||||
visible: boolean
|
||||
gameId: string | null
|
||||
gameTitle: string | null
|
||||
}
|
||||
handleSmokeAPIVotesClose: () => void
|
||||
handleSmokeAPIVotesConfirm: () => void
|
||||
|
||||
// Rating dialog
|
||||
ratingDialog: RatingDialogState
|
||||
handleOpenRating: (gameId: string) => void
|
||||
handleCloseRating: () => void
|
||||
handleSubmitRating: (worked: boolean) => Promise<void>
|
||||
reportingEnabled: boolean
|
||||
|
||||
// Toast notifications
|
||||
showToast: (
|
||||
message: string,
|
||||
|
||||
Reference in New Issue
Block a user