File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
ui/src/components/ApiKeyModal Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ import { CopyOutlined } from '@ant-design/icons'
22import { Modal , Spin , Tag , Typography } from 'antd'
33import { useApiKey } from '../../hooks/useApiKey'
44import { useMessageApi } from '../../providers/MessageProvider'
5- import { examples } from './examples'
65
7- const { Paragraph, Text } = Typography
6+ const { Paragraph } = Typography
87
98interface ApiKeyModalProps {
109 open : boolean
@@ -45,10 +44,15 @@ export const ApiKeyModal = ({ open, onCancel }: ApiKeyModalProps) => {
4544 </ Tag >
4645 </ center >
4746 < br />
48- < Paragraph >
49- Examples of using your API key with Python requests:
47+ < Paragraph style = { { textAlign : 'center' } } >
48+ < a href = "/api/docs" target = "_blank" rel = "noopener noreferrer" >
49+ OpenAPI Docs
50+ </ a >
51+ |
52+ < a href = "/api/swagger.json" target = "_blank" rel = "noopener noreferrer" >
53+ Swagger JSON
54+ </ a >
5055 </ Paragraph >
51- < Text > { examples } </ Text >
5256 </ Modal >
5357 )
5458}
You can’t perform that action at this time.
0 commit comments