no carpools text

This commit is contained in:
HyperionLegion 2021-08-11 20:32:00 -04:00
parent 9844c0b8c4
commit f774a82f43
3 changed files with 6 additions and 6 deletions

4
.env
View File

@ -1,2 +1,2 @@
REACT_APP_API_LOCAL=http://localhost:5000/ REACT_APP_API_PROD=http://localhost:5000/
REACT_APP_API_PROD=https://api.wheelshare.app/ REACT_APP_API_LOCAL=https://api.wheelshare.app/

View File

@ -30,9 +30,9 @@ export default function ActiveCarpools() {
> >
<h1 style={{ textAlign: 'center' }}>Carpools</h1> <h1 style={{ textAlign: 'center' }}>Carpools</h1>
<UISecondaryBox style={{ width: '100%', boxSizing: 'border-box' }}> <UISecondaryBox style={{ width: '100%', boxSizing: 'border-box' }}>
{activeCarpools.map((carpool) => ( {activeCarpools.length > 0 ? activeCarpools.map((carpool) => (
<ActiveCarpoolListItem carpool={carpool} key={carpool.id} /> <ActiveCarpoolListItem carpool={carpool} key={carpool.id} />
))} )) : "No Carpools"}
</UISecondaryBox> </UISecondaryBox>
</div> </div>
); );

View File

@ -145,13 +145,13 @@ export default function Carpools() {
Click <EmojiPeopleIcon style={{ fontSize: '0.875rem' }} /> to request to Click <EmojiPeopleIcon style={{ fontSize: '0.875rem' }} /> to request to
join a carpool. join a carpool.
</span> </span>
{event.carpools.map((carpool) => ( {event.carpools.length>0 ? event.carpools.map((carpool) => (
<CarpoolRow <CarpoolRow
carpool={carpool} carpool={carpool}
key={carpool.id} key={carpool.id}
inCarpoolAlready={alreadyInCarpool} inCarpoolAlready={alreadyInCarpool}
/> />
))} )) : "No Carpools"}
</div> </div>
); );
} }