feat: show confirmation modal only if confirmation tru

This commit is contained in:
karishmas6
2024-07-24 18:13:12 +05:30
parent 5636fb93a1
commit 0b3a340725

View File

@@ -124,7 +124,9 @@ export const BrowserWindow = () => {
return (
<div onClick={handleClick}>
<GenericModal
{
showConfirmation ? (
<GenericModal
isOpen={showConfirmation}
onClose={() => setShowConfirmation(false)}
canBeClosed={false}
@@ -135,6 +137,8 @@ export const BrowserWindow = () => {
onNo={() => handleConfirmation(false)}
/>
</GenericModal>
) : null
}
{(!showConfirmation && highlighterData?.rect != null && highlighterData?.rect.top != null) && canvasRef?.current ?
<Highlighter
unmodifiedRect={highlighterData?.rect}