mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 10:40:07 +08:00
chore: use destroyOnHidden instead of deprecated destroyOnClose (#9102)
* chore: use destroyOnHidden instead of deprecated destroyOnClose * Update src/renderer/src/components/MinApp/MinappPopupContainer.tsx * Update src/renderer/src/pages/settings/SelectionAssistantSettings/components/SelectionFilterListModal.tsx --------- Co-authored-by: Phantom <59059173+EurFelux@users.noreply.github.com>
This commit is contained in:
parent
7c2a9d141e
commit
df587fc61f
@ -133,7 +133,7 @@ const HtmlArtifactsPopup: React.FC<HtmlArtifactsPopupProps> = ({ open, title, ht
|
||||
open={open}
|
||||
afterClose={onClose}
|
||||
centered={!isFullscreen}
|
||||
destroyOnClose
|
||||
destroyOnHidden
|
||||
mask={!isFullscreen}
|
||||
maskClosable={false}
|
||||
width={isFullscreen ? '100vw' : '90vw'}
|
||||
|
||||
@ -499,7 +499,6 @@ const MinappPopupContainer: React.FC = () => {
|
||||
placement="bottom"
|
||||
onClose={handlePopupMinimize}
|
||||
open={isPopupShow}
|
||||
destroyOnClose={false}
|
||||
mask={false}
|
||||
rootClassName="minapp-drawer"
|
||||
maskClassName="minapp-mask"
|
||||
|
||||
@ -349,7 +349,7 @@ const PopupContainer: React.FC<Props> = ({ source, title, resolve }) => {
|
||||
onOk={onOk}
|
||||
onCancel={onCancel}
|
||||
afterClose={onClose}
|
||||
destroyOnClose
|
||||
destroyOnHidden
|
||||
centered
|
||||
width={500}
|
||||
okText={t('common.save')}
|
||||
|
||||
@ -403,7 +403,7 @@ const ChatNavigation: FC<ChatNavigationProps> = ({ containerId }) => {
|
||||
onClose={handleDrawerClose}
|
||||
open={showChatHistory}
|
||||
width={680}
|
||||
destroyOnClose
|
||||
destroyOnHidden
|
||||
styles={{
|
||||
header: { border: 'none' },
|
||||
body: {
|
||||
|
||||
@ -21,7 +21,7 @@ const KnowledgeBaseFormModal: React.FC<KnowledgeBaseFormModalProps> = ({ panels,
|
||||
|
||||
return (
|
||||
<StyledModal
|
||||
destroyOnClose
|
||||
destroyOnHidden
|
||||
maskClosable={false}
|
||||
centered
|
||||
transitionName="animation-move-down"
|
||||
|
||||
@ -274,7 +274,7 @@ const AddMcpServerModal: FC<AddMcpServerModalProps> = ({
|
||||
onClose()
|
||||
}}
|
||||
confirmLoading={loading}
|
||||
destroyOnClose
|
||||
destroyOnHidden
|
||||
centered
|
||||
transitionName="animation-move-down"
|
||||
width={600}>
|
||||
|
||||
@ -39,7 +39,7 @@ const MacProcessTrustHintModal: FC<MacProcessTrustHintModalProps> = ({ open, onC
|
||||
</div>
|
||||
}
|
||||
centered
|
||||
destroyOnClose>
|
||||
destroyOnHidden>
|
||||
<ContentContainer>
|
||||
<Paragraph>
|
||||
<Text>
|
||||
|
||||
@ -149,7 +149,7 @@ const SelectionActionSearchModal: FC<SelectionActionSearchModalProps> = ({
|
||||
open={isModalOpen}
|
||||
onOk={handleOk}
|
||||
onCancel={handleCancel}
|
||||
destroyOnClose
|
||||
destroyOnHidden
|
||||
centered>
|
||||
<Form
|
||||
form={form}
|
||||
|
||||
@ -46,7 +46,7 @@ const SelectionFilterListModal: FC<SelectionFilterListModalProps> = ({ open, onC
|
||||
onCancel={onClose}
|
||||
maskClosable={false}
|
||||
keyboard={true}
|
||||
destroyOnClose={true}
|
||||
destroyOnHidden
|
||||
footer={[
|
||||
<Button key="modal-cancel" onClick={onClose}>
|
||||
{t('common.cancel')}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user