All files / src/features/GiveRiskProfile GiveRiskSidepanel.tsx

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

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          1x 2x 2x                              
import NiceModal from "@ebay/nice-modal-react";
import GiveRiskProfile from ".";
import GiveSidePanel from "@shared/SidePanel/GiveSidePanel";
import useNiceModal from "@common/Modal/ModalFactory/hooks/useNiceModal";
 
const GiveRiskSidepanel = NiceModal.create(({ data }: { data: any }) => {
  const { open, onClose } = useNiceModal();
  return (
    <GiveSidePanel
      open={open}
      onClose={() => {
        onClose();
      }}
      data-testid="risk-panel-rebranded"
      width={640}
    >
      <GiveRiskProfile data={data} onClose={onClose} isModal />
    </GiveSidePanel>
  );
});
 
export default GiveRiskSidepanel;