All files / src/components/common/Modal/DeleteModal DeleteEnterpriseDescription.tsx

66.66% Statements 2/3
100% Branches 0/0
50% Functions 1/2
66.66% Lines 2/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37          9x         6x                                                    
import { RHFInput } from "@common/Input";
import { Text } from "@common/Text";
import { Stack } from "@mui/material";
import { palette } from "@palette";
 
export const DeleteEnterpriseDescription = ({
  itemName,
}: {
  itemName?: string;
}) => {
  return (
    <Stack spacing={2} id="delete-enterprise-form">
      <Text fontWeight="book" color={palette.neutral[70]}>
        Are you sure you want to delete{" "}
        <span style={{ color: palette.neutral[100] }}>{itemName}</span>? All
        associated data, such as merchants, transactions, payment forms, etc.
        will be deleted.
      </Text>
      <Text fontWeight="book" color={palette.neutral[80]}>
        Please enter the provider name to confirm
      </Text>
      <RHFInput
        name="enterpriseName"
        fullWidth
        placeholder="Provider name"
        label="Provider name"
        onPaste={(e) => e.preventDefault()}
      />
      <Text fontWeight="book" color={palette.neutral[70]}>
        You have <span style={{ color: palette.neutral[100] }}>15 days</span> to
        restore this provider, by following instructions that will be sent to
        your email.
      </Text>
    </Stack>
  );
};