diff --git a/src/commons/dialogs/ConfirmDialog.tsx b/src/commons/dialogs/ConfirmDialog.tsx index 13a4039118..e80463b068 100644 --- a/src/commons/dialogs/ConfirmDialog.tsx +++ b/src/commons/dialogs/ConfirmDialog.tsx @@ -1,10 +1,10 @@ import { Button, + ButtonProps, Classes, Dialog, - IButtonProps, + DialogProps, IconName, - IDialogProps, Intent } from '@blueprintjs/core'; import classNames from 'classnames'; @@ -14,12 +14,12 @@ export interface ConfirmDialogProps { icon?: IconName; title?: string; contents?: React.ReactNode; - choices: Array<{ key: T; label: string; intent?: Intent; props?: IButtonProps }>; + choices: Array<{ key: T; label: string; intent?: Intent; props?: ButtonProps }>; largeButtons?: boolean; escapeResponse?: T; onResponse: (response: T) => void; isOpen?: boolean; - props?: Omit; + props?: Omit; } export function ConfirmDialog( diff --git a/src/pages/__tests__/localStorage.test.ts b/src/pages/__tests__/localStorage.test.ts index b3b4550c72..00123fac05 100644 --- a/src/pages/__tests__/localStorage.test.ts +++ b/src/pages/__tests__/localStorage.test.ts @@ -9,6 +9,7 @@ const mockShortDefaultState: SavedState = { refreshToken: defaultState.session.refreshToken, courseRegId: defaultState.session.courseRegId, role: defaultState.session.role, + group: defaultState.session.group, name: defaultState.session.name, userId: defaultState.session.userId, courses: defaultState.session.courses, diff --git a/src/pages/localStorage.ts b/src/pages/localStorage.ts index 8e3b36531d..83fef9cebc 100644 --- a/src/pages/localStorage.ts +++ b/src/pages/localStorage.ts @@ -57,6 +57,7 @@ export const saveState = (state: OverallState) => { refreshToken: state.session.refreshToken, courseRegId: state.session.courseRegId, role: state.session.role, + group: state.session.group, name: state.session.name, userId: state.session.userId, courses: state.session.courses,