Feat: Modify the text of the embedded website button #3909 (#4057)

### What problem does this PR solve?

Feat: Modify the text of the embedded website button #3909

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-12-17 14:46:54 +08:00
committed by GitHub
parent 96667696d2
commit 0fcb564261
7 changed files with 29 additions and 8 deletions

View File

@ -1,6 +1,6 @@
import { ReactComponent as ChatAppCube } from '@/assets/svg/chat-app-cube.svg';
import RenameModal from '@/components/rename-modal';
import { DeleteOutlined, EditOutlined, KeyOutlined } from '@ant-design/icons';
import { DeleteOutlined, EditOutlined } from '@ant-design/icons';
import {
Avatar,
Button,
@ -43,6 +43,7 @@ import {
import { useTranslate } from '@/hooks/common-hooks';
import { useSetSelectedRecord } from '@/hooks/logic-hooks';
import { IDialog } from '@/interfaces/database/chat';
import { PictureInPicture2 } from 'lucide-react';
import styles from './index.less';
const { Text } = Typography;
@ -191,8 +192,9 @@ const Chat = () => {
onClick: handleShowOverviewModal(dialog),
label: (
<Space>
<KeyOutlined />
{t('publish', { keyPrefix: 'flow' })}
{/* <KeyOutlined /> */}
<PictureInPicture2 className="size-4" />
{t('embedIntoSite', { keyPrefix: 'common' })}
</Space>
),
},

View File

@ -78,7 +78,7 @@ const FlowHeader = ({ showChatDrawer, chatDrawerVisible }: IProps) => {
onClick={handleShowEmbedModal}
disabled={!isBeginNodeDataQueryEmpty}
>
<b>{t('publish')}</b>
<b>{t('embedIntoSite', { keyPrefix: 'common' })}</b>
</Button>
</Space>
</Flex>