refactor: remove unused SummaryPanel component from BulkActionConfirmationModal
This commit is contained in:
-75
@@ -83,81 +83,6 @@ const ModalFormBody = React.memo(function ModalFormBody<
|
|||||||
form?: ReturnType<typeof useForm<TMeta>>;
|
form?: ReturnType<typeof useForm<TMeta>>;
|
||||||
}) => React.ReactElement;
|
}) => React.ReactElement;
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
|
||||||
// Summary Panel (shown after processing completes)
|
|
||||||
// ---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// const SummaryPanel = React.memo(function SummaryPanel({
|
|
||||||
// result,
|
|
||||||
// t,
|
|
||||||
// }: {
|
|
||||||
// result: AggregatedResult;
|
|
||||||
// t: (key: string) => string;
|
|
||||||
// }) {
|
|
||||||
// return (
|
|
||||||
// <Paper p="md" radius="md" withBorder>
|
|
||||||
// <Stack gap="sm">
|
|
||||||
// {/* Stats row */}
|
|
||||||
// <Group gap="lg">
|
|
||||||
// <Group gap="xs">
|
|
||||||
// <ThemeIcon variant="light" color="blue" size="sm" radius="xl">
|
|
||||||
// <Info size={14} />
|
|
||||||
// </ThemeIcon>
|
|
||||||
// <Text size="sm" fw={500}>
|
|
||||||
// {t('common:bulkAction.totalItems')}:
|
|
||||||
// </Text>
|
|
||||||
// <Text size="sm" c="dimmed">
|
|
||||||
// {result.totalItems}
|
|
||||||
// </Text>
|
|
||||||
// </Group>
|
|
||||||
|
|
||||||
// <Group gap="xs">
|
|
||||||
// <ThemeIcon variant="light" color="green" size="sm" radius="xl">
|
|
||||||
// <Check size={14} />
|
|
||||||
// </ThemeIcon>
|
|
||||||
// <Text size="sm" fw={500}>
|
|
||||||
// {t('common:bulkAction.totalSuccess')}:
|
|
||||||
// </Text>
|
|
||||||
// <Text size="sm" c="dimmed">
|
|
||||||
// {result.totalSuccess}
|
|
||||||
// </Text>
|
|
||||||
// </Group>
|
|
||||||
|
|
||||||
// <Group gap="xs">
|
|
||||||
// <ThemeIcon variant="light" color="red" size="sm" radius="xl">
|
|
||||||
// <X size={14} />
|
|
||||||
// </ThemeIcon>
|
|
||||||
// <Text size="sm" fw={500}>
|
|
||||||
// {t('common:bulkAction.totalFailed')}:
|
|
||||||
// </Text>
|
|
||||||
// <Text size="sm" c="dimmed">
|
|
||||||
// {result.totalFailed}
|
|
||||||
// </Text>
|
|
||||||
// </Group>
|
|
||||||
// </Group>
|
|
||||||
|
|
||||||
// {/* Messages list */}
|
|
||||||
// {result.messages.length > 0 && (
|
|
||||||
// <>
|
|
||||||
// <Text size="sm" fw={600} mt="xs">
|
|
||||||
// {t('common:bulkAction.messages')}:
|
|
||||||
// </Text>
|
|
||||||
// <List size="sm" spacing="xs" withPadding>
|
|
||||||
// {result.messages.map((msg, idx) => (
|
|
||||||
// <List.Item key={idx}>
|
|
||||||
// <Text size="xs" c="dimmed">
|
|
||||||
// {msg}
|
|
||||||
// </Text>
|
|
||||||
// </List.Item>
|
|
||||||
// ))}
|
|
||||||
// </List>
|
|
||||||
// </>
|
|
||||||
// )}
|
|
||||||
// </Stack>
|
|
||||||
// </Paper>
|
|
||||||
// );
|
|
||||||
// });
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// BulkActionConfirmationModal
|
// BulkActionConfirmationModal
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user