refactor: create cluster ux

This commit is contained in:
jialin
2026-01-06 17:21:32 +08:00
parent 66e8f83395
commit c821a2e463
10 changed files with 200 additions and 67 deletions
@@ -0,0 +1,37 @@
import GSDrawer from '@/components/scroller-modal/gs-drawer';
import React from 'react';
import ClusterCreate from './cluster-create';
interface ClusterModalProps {
open: boolean;
onClose: () => void;
}
const ClusterModal: React.FC<ClusterModalProps> = ({ open, onClose }) => {
const handleCancel = () => {
onClose();
};
return (
<GSDrawer
title={'Create Cluster'}
open={open}
onClose={handleCancel}
destroyOnHidden={true}
closeIcon={false}
maskClosable={false}
keyboard={false}
width={900}
styles={{
body: {
paddingBlock: 0
}
}}
footer={false}
>
<ClusterCreate onClose={handleCancel}></ClusterCreate>
</GSDrawer>
);
};
export default ClusterModal;