fix: build file warnings

This commit is contained in:
jialin
2024-07-15 19:04:03 +08:00
parent 0270320579
commit 7e06a56c12
16 changed files with 1161 additions and 1091 deletions
+7 -1
View File
@@ -184,7 +184,13 @@ const AddModal: React.FC<AddModalProps> = ({
<SealInput.Input
label={intl.formatMessage({ id: 'apikeys.form.apikey' })}
value={apikeyValue}
addAfter={<CopyButton text={apikeyValue}></CopyButton>}
addAfter={
<CopyButton
text={apikeyValue}
shape="default"
size="small"
></CopyButton>
}
></SealInput.Input>
</Form.Item>
)}
+3 -3
View File
@@ -20,7 +20,7 @@ import {
} from 'antd';
import dayjs from 'dayjs';
import _ from 'lodash';
import { useEffect, useState } from 'react';
import { StrictMode, useEffect, useState } from 'react';
import { deleteApisKey, queryApisKeysList } from './apis';
import AddAPIKeyModal from './components/add-apikey';
import { ListItem } from './config/types';
@@ -179,7 +179,7 @@ const Models: React.FC = () => {
}, [queryParams]);
return (
<>
<StrictMode>
<PageContainer
ghost
header={{
@@ -308,7 +308,7 @@ const Models: React.FC = () => {
onCancel={handleModalCancel}
onOk={handleModalOk}
></AddAPIKeyModal>
</>
</StrictMode>
);
};