diff --git a/client/src/components/FoodSeeker/SearchResults/StakeholderPreview/StakeholderPreview.js b/client/src/components/FoodSeeker/SearchResults/StakeholderPreview/StakeholderPreview.js index 716b30b9b..987765ba0 100644 --- a/client/src/components/FoodSeeker/SearchResults/StakeholderPreview/StakeholderPreview.js +++ b/client/src/components/FoodSeeker/SearchResults/StakeholderPreview/StakeholderPreview.js @@ -172,7 +172,11 @@ const StakeholderPreview = ({ stakeholder }) => { padding: "0.5rem", }} > - + handleSelectOrganization(stakeholder)} + > { - - {stakeholder.name} - - - {stakeholder.categories.map((category) => ( + handleSelectOrganization(stakeholder)} + > + + {stakeholder.name} + + + {stakeholder.categories.map((category) => ( + + {category.name} + + ))} + + - {category.name} + {stakeholder.foodTypes} - ))} - - - - {stakeholder.foodTypes} - - + + + + {stakeholder.inactiveTemporary || stakeholder.inactive ? ( + + ) : null} - - {stakeholder.inactiveTemporary || stakeholder.inactive ? ( - - ) : null} + {showAllowWalkinsFlag && + !(stakeholder.inactiveTemporary || stakeholder.inactive) && ( + <> + {isOpenFlag && ( + + )} + {isAlmostClosedFlag && ( + + )} + + + )} + + - {showAllowWalkinsFlag && - !(stakeholder.inactiveTemporary || stakeholder.inactive) && ( - <> - {isOpenFlag && ( - - )} - {isAlmostClosedFlag && ( - - )} - - - )} -