mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-03 11:05:30 +08:00
### What problem does this PR solve? feat: API access key management #2846 feat: Render markdown file with remark-loader #2846 ### Type of change - [ ] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):
This commit is contained in:
3
web/src/pages/chat/chat-id-modal/index.less
Normal file
3
web/src/pages/chat/chat-id-modal/index.less
Normal file
@ -0,0 +1,3 @@
|
||||
.id {
|
||||
.linkText();
|
||||
}
|
||||
34
web/src/pages/chat/chat-id-modal/index.tsx
Normal file
34
web/src/pages/chat/chat-id-modal/index.tsx
Normal file
@ -0,0 +1,34 @@
|
||||
import { useTranslate } from '@/hooks/common-hooks';
|
||||
import { IModalProps } from '@/interfaces/common';
|
||||
import { Modal, Typography } from 'antd';
|
||||
|
||||
import styles from './index.less';
|
||||
|
||||
const { Paragraph } = Typography;
|
||||
|
||||
const ChatIdModal = ({
|
||||
visible,
|
||||
hideModal,
|
||||
id,
|
||||
}: IModalProps<any> & { id: string; name?: string; idKey: string }) => {
|
||||
const { t } = useTranslate('chat');
|
||||
|
||||
return (
|
||||
<>
|
||||
<Modal
|
||||
title={t('overview')}
|
||||
open={visible}
|
||||
onCancel={hideModal}
|
||||
cancelButtonProps={{ style: { display: 'none' } }}
|
||||
onOk={hideModal}
|
||||
okText={t('close', { keyPrefix: 'common' })}
|
||||
>
|
||||
<Paragraph copyable={{ text: id }} className={styles.id}>
|
||||
{id}
|
||||
</Paragraph>
|
||||
</Modal>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default ChatIdModal;
|
||||
Reference in New Issue
Block a user