fix: show warning on mobile webview before app quits (#1598)

This commit is contained in:
Aman Harwara
2022-09-20 01:48:40 +05:30
committed by GitHub
parent c4d7761496
commit e3be17c7f8
2 changed files with 55 additions and 9 deletions

View File

@@ -41,7 +41,15 @@ const ConfirmSignoutModal: FunctionComponent<Props> = ({ application, viewContro
<AlertDialogLabel className="sk-h3 sk-panel-section-title">Sign out workspace?</AlertDialogLabel>
<AlertDialogDescription className="sk-panel-row">
<div>
<p className="text-foreground">{STRING_SIGN_OUT_CONFIRMATION}</p>
<p className="text-foreground">
{STRING_SIGN_OUT_CONFIRMATION}
{application.isNativeMobileWeb() && (
<div className="font-bold">
<br />
Your app will quit after sign out completes.
</div>
)}
</p>
{showWorkspaceWarning && (
<>
<br />