diff --git a/config-ui/src/plugins/components/deployments/index.tsx b/config-ui/src/plugins/components/deployments/index.tsx index b3b0d6a58d3..4ed690cc4e4 100644 --- a/config-ui/src/plugins/components/deployments/index.tsx +++ b/config-ui/src/plugins/components/deployments/index.tsx @@ -21,16 +21,17 @@ import { Space, Select, Input } from 'antd'; import { useRequest } from '@mints/hooks'; import API from '@/api'; -import { PageLoading } from '@/components'; +import { Loading } from '@/components'; interface Props { + style?: React.CSSProperties; plugin: string; connectionId: ID; transformation: any; setTransformation: React.Dispatch>; } -export const Deployments = ({ plugin, connectionId, transformation, setTransformation }: Props) => { +export const Deployments = ({ style, plugin, connectionId, transformation, setTransformation }: Props) => { const [type, setType] = useState('regex'); const { loading, data } = useRequest(() => API.scopeConfig.deployments(plugin, connectionId), [plugin, connectionId]); @@ -77,11 +78,11 @@ export const Deployments = ({ plugin, connectionId, transformation, setTransform }; if (loading || !data) { - return ; + return ; } return ( - +