chore: Update chrome extension banner in share modal (#40503)

/ok-to-test tags="@tag.AIAgents"

Just a corresponding CE PR for [EE
PR](https://github.com/appsmithorg/appsmith-ee/pull/7308/files)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Improved modal behavior to ensure it updates correctly when opened or
closed.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/14770632513>
> Commit: 208bde7e11fbafcbbfe200a9ff796190031583aa
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=14770632513&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.AIAgents`
> Spec:
> <hr>Thu, 01 May 2025 06:10:13 UTC
<!-- end of auto-generated comment: Cypress test results  -->
This commit is contained in:
Pawan Kumar 2025-05-01 12:01:45 +05:30 committed by GitHub
parent fb7c3d1a07
commit 92ad304624
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,6 +197,7 @@ const Header = () => {
<ToggleModeButton />
{applicationId && <EditorShareButton setShowModal={setShowModal} />}
<Modal
key={showModal ? "modal-open" : "modal-closed"}
onOpenChange={(isOpen) => setShowModal(isOpen)}
open={showModal}
>