feat: UTRP v2 migration (#292)
* feat: wip add course by url * chore: update imports * feat: add useCourseFromUrl hook * chore: extract logic into async function * feat: add checkLoginStatus.ts * feat: add useCourseMigration hook * feat: working course migration * fix: active schedule bug * feat: refactor logic and add to onUpdate * feat: update ui style * feat: add changelog functionality to settings * chore: update packages * feat: migration + sentry stuffs * feat: improve migration flow * docs: add sentry jsdocs * chore: fix lint and format * chore: cleanup + fix race condition --------- Co-authored-by: Samuel Gunter <sgunter@utexas.edu> Co-authored-by: Razboy20 <razboy20@gmail.com>
This commit is contained in:
@@ -16,10 +16,22 @@ export interface DialogInfo {
|
||||
onClose?: () => void;
|
||||
}
|
||||
|
||||
export interface DialogOptions {
|
||||
/**
|
||||
* Whether to show the dialog immediately.
|
||||
*/
|
||||
immediate?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow the user to close the dialog by clicking outside of it. (Defaults to true)
|
||||
*/
|
||||
closeOnClickOutside?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to show a dialog.
|
||||
*/
|
||||
export type ShowDialogFn = (info: DialogInfo | CloseWrapper<DialogInfo>) => void;
|
||||
export type ShowDialogFn = (info: DialogInfo | CloseWrapper<DialogInfo>, options?: DialogOptions) => void;
|
||||
|
||||
/**
|
||||
* Context for the dialog provider.
|
||||
|
||||
Reference in New Issue
Block a user