(data: AppDataType)
| 17 | const { onClose, onSubmit, open, parent } = props; |
| 18 | const [appList, setAppList] = useState<ApplicationData[]>([]); |
| 19 | function formatData(data: AppDataType) { |
| 20 | const appData: ApplicationData[] = []; |
| 21 | data.forEach(item => { |
| 22 | if (item.type === 1) { |
| 23 | appData.push(item as ApplicationData); |
| 24 | } |
| 25 | }); |
| 26 | setAppList(appData); |
| 27 | } |
| 28 | const handleClose = () => { |
| 29 | onClose(); |
| 30 | }; |