mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-09 22:00:16 -04:00
no carpools text
This commit is contained in:
parent
9844c0b8c4
commit
f774a82f43
4
.env
4
.env
|
@ -1,2 +1,2 @@
|
|||
REACT_APP_API_LOCAL=http://localhost:5000/
|
||||
REACT_APP_API_PROD=https://api.wheelshare.app/
|
||||
REACT_APP_API_PROD=http://localhost:5000/
|
||||
REACT_APP_API_LOCAL=https://api.wheelshare.app/
|
||||
|
|
|
@ -30,9 +30,9 @@ export default function ActiveCarpools() {
|
|||
>
|
||||
<h1 style={{ textAlign: 'center' }}>Carpools</h1>
|
||||
<UISecondaryBox style={{ width: '100%', boxSizing: 'border-box' }}>
|
||||
{activeCarpools.map((carpool) => (
|
||||
{activeCarpools.length > 0 ? activeCarpools.map((carpool) => (
|
||||
<ActiveCarpoolListItem carpool={carpool} key={carpool.id} />
|
||||
))}
|
||||
)) : "No Carpools"}
|
||||
</UISecondaryBox>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -145,13 +145,13 @@ export default function Carpools() {
|
|||
Click <EmojiPeopleIcon style={{ fontSize: '0.875rem' }} /> to request to
|
||||
join a carpool.
|
||||
</span>
|
||||
{event.carpools.map((carpool) => (
|
||||
{event.carpools.length>0 ? event.carpools.map((carpool) => (
|
||||
<CarpoolRow
|
||||
carpool={carpool}
|
||||
key={carpool.id}
|
||||
inCarpoolAlready={alreadyInCarpool}
|
||||
/>
|
||||
))}
|
||||
)) : "No Carpools"}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user