background.ts/conversation_view.ts modules, Whisper.View/ToastView in TS

This commit is contained in:
Scott Nonnenberg 2021-02-26 13:06:37 -08:00 committed by Josh Perez
parent 2aa2aca9f2
commit d0e3a2ce29
34 changed files with 957 additions and 887 deletions

View file

@ -13,7 +13,7 @@ type ConfirmationDialogViewProps = {
confirmStyle?: 'affirmative' | 'negative';
message: string;
okText: string;
reject?: () => void;
reject?: (error: Error) => void;
resolve: () => void;
};
@ -65,7 +65,7 @@ function showConfirmationDialog(options: ConfirmationDialogViewProps) {
onClose={() => {
removeConfirmationDialog();
if (options.reject) {
options.reject();
options.reject(new Error('showConfirmationDialog: onClose called'));
}
}}
title={options.message}