@@ -651,48 +651,50 @@ const InspectionEnforcements: React.FC<InspectionEnforcementsProps> = ({
651651 openEnforcementModal = { openEnforcementModal }
652652 />
653653 ) ) }
654- { inspectionOrdersData ?. map ( ( order ) => (
654+ { inspectionAdministrativePenaltiesData ?. map ( ( penality ) => (
655655 < Box
656- key = { order . id }
657- onClick = { ( ) => openEnforcementOrderDrawer ( order ) }
656+ key = { penality . id }
657+ onClick = { ( ) => openAdministrativePenaltyUpdateModal ( penality ) }
658658 >
659659 < EnforcementCard
660- order = { order }
660+ administrativePenalty = { penality }
661661 requirementEnforcements = { requirementEnforcements }
662662 />
663663 </ Box >
664664 ) ) }
665- { inspectionWarningLettersData ?. map ( ( warningLetter ) => (
665+ { inspectionChargeRecommendationsData ?. map ( ( chargeRecommendation ) => (
666666 < Box
667- key = { warningLetter . id }
668- onClick = { ( ) => openEnforcementWarningLetterDrawer ( warningLetter ) }
667+ key = { chargeRecommendation . id }
668+ onClick = { ( ) =>
669+ openChargeRecommendationUpdateModal ( chargeRecommendation )
670+ }
669671 >
670672 < EnforcementCard
671- warningLetter = { warningLetter }
673+ chargeRecommendation = { chargeRecommendation }
672674 requirementEnforcements = { requirementEnforcements }
673675 />
674676 </ Box >
675677 ) ) }
676- { inspectionAdministrativePenaltiesData ?. map ( ( penality ) => (
678+ { inspectionOrdersData ?. map ( ( order ) => (
677679 < Box
678- key = { penality . id }
679- onClick = { ( ) => openAdministrativePenaltyUpdateModal ( penality ) }
680+ key = { order . id }
681+ onClick = { ( ) => openEnforcementOrderDrawer ( order ) }
680682 >
681683 < EnforcementCard
682- administrativePenalty = { penality }
684+ order = { order }
683685 requirementEnforcements = { requirementEnforcements }
684686 />
685687 </ Box >
686688 ) ) }
687- { inspectionChargeRecommendationsData ?. map ( ( chargeRecommendation ) => (
689+ { inspectionRestorativeJusticeData ?. map ( ( restorativeJustice ) => (
688690 < Box
689- key = { chargeRecommendation . id }
691+ key = { restorativeJustice . id }
690692 onClick = { ( ) =>
691- openChargeRecommendationUpdateModal ( chargeRecommendation )
693+ openRestorativeJusticeUpdateModal ( restorativeJustice )
692694 }
693695 >
694696 < EnforcementCard
695- chargeRecommendation = { chargeRecommendation }
697+ restorativeJustice = { restorativeJustice }
696698 requirementEnforcements = { requirementEnforcements }
697699 />
698700 </ Box >
@@ -708,15 +710,13 @@ const InspectionEnforcements: React.FC<InspectionEnforcementsProps> = ({
708710 />
709711 </ Box >
710712 ) ) }
711- { inspectionRestorativeJusticeData ?. map ( ( restorativeJustice ) => (
713+ { inspectionWarningLettersData ?. map ( ( warningLetter ) => (
712714 < Box
713- key = { restorativeJustice . id }
714- onClick = { ( ) =>
715- openRestorativeJusticeUpdateModal ( restorativeJustice )
716- }
715+ key = { warningLetter . id }
716+ onClick = { ( ) => openEnforcementWarningLetterDrawer ( warningLetter ) }
717717 >
718718 < EnforcementCard
719- restorativeJustice = { restorativeJustice }
719+ warningLetter = { warningLetter }
720720 requirementEnforcements = { requirementEnforcements }
721721 />
722722 </ Box >
0 commit comments