Skip to content

Commit

Permalink
fix: Workspace - ESC key does not dismiss popup in Distance rates.
Browse files Browse the repository at this point in the history
Signed-off-by: krishna2323 <[email protected]>
  • Loading branch information
Krishna2323 committed Aug 20, 2024
1 parent 456b974 commit d48a513
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/settings/AboutPage/ConsolePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ function ConsolePage({capturedLogs, shouldStoreLogs}: ConsolePageProps) {
title={translate('initialSettingsPage.debugConsole.shareLog')}
isVisible={isLimitModalVisible}
onConfirm={() => setIsLimitModalVisible(false)}
onCancel={() => setIsLimitModalVisible(false)}
prompt={translate('initialSettingsPage.debugConsole.logSizeTooLarge', {
size: CONST.API_ATTACHMENT_VALIDATIONS.MAX_SIZE / 1024 / 1024,
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ function PolicyDistanceRateDetailsPage({policy, route}: PolicyDistanceRateDetail
/>
<ConfirmModal
onConfirm={() => setIsWarningModalVisible(false)}
onCancel={() => setIsWarningModalVisible(false)}
isVisible={isWarningModalVisible}
title={translate('workspace.distanceRates.oopsNotSoFast')}
prompt={translate('workspace.distanceRates.workspaceNeeds')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ function PolicyDistanceRatesPage({
)}
<ConfirmModal
onConfirm={() => setIsWarningModalVisible(false)}
onCancel={() => setIsWarningModalVisible(false)}
isVisible={isWarningModalVisible}
title={translate('workspace.distanceRates.oopsNotSoFast')}
prompt={translate('workspace.distanceRates.workspaceNeeds')}
Expand Down

0 comments on commit d48a513

Please sign in to comment.