+ {stableReplicaSets?.length > 0 && (
+
+ Stable:{' '}
+ {stableReplicaSets.map((rs) => (
+
+
+ Rev {rs.revision} ({rs.available}/{rs.replicas})
+
+
+ ))}
+
+ )}
+ {canaryReplicaSets?.length > 0 && (
+
+ Canary:{' '}
+ {canaryReplicaSets.map((rs) => (
+
+
+ Rev {rs.revision} ({rs.available}/{rs.replicas})
+
+
+ ))}
+
+ )}
+ {previewReplicaSets?.length > 0 && (
+
+ Preview:{' '}
+ {previewReplicaSets.map((rs) => (
+
+
+ Rev {rs.revision} ({rs.available}/{rs.replicas})
+
+
+ ))}
+
+ )}
+
+ );
+ },
+ },
+ {
+ title: 'Status',
+ sorter: (a: any, b: any) => a.status.localeCompare(b.status),
+ render: (record: {message?: string; status?: string}) => {
+ return (
+
+
+ {}} indicateLoading />
+
+
+ {}} indicateLoading />
+
+
+ {}} indicateLoading />
+
+
+ {}} indicateLoading />
+
+
+ );
+ },
+ },
+ ];
+
+ const history = useHistory();
+ const [selectedRow, setSelectedRow] = React.useState