Skip to content

Commit

Permalink
adding cool trip title to share page
Browse files Browse the repository at this point in the history
  • Loading branch information
sam9116 committed Feb 8, 2024
1 parent ec536a7 commit 4bda986
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SharePage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Stack } from '@mui/material';
import { Stack, TextField } from '@mui/material';
import Map from "./map";
import { useLoadScript } from "@react-google-maps/api"
import SharePageList from './SharePageList';
Expand All @@ -11,15 +11,15 @@ const SharePage = ({ concerts, userLocation, mapStyle }) => {
});

const middleIndex = Math.ceil(concerts.length / 2);
const concerts1 = concerts.slice(0,middleIndex);
const concerts1 = concerts.slice(0, middleIndex);
const concerts2 = concerts.slice(middleIndex);

return (
<Stack spacing={2} >
<Stack container xs={6} sm={6} md={6}>
{isLoaded ? <Map concerts={concerts} userLocation={userLocation} mapStyle={mapStyle} /> : null}
</Stack>

<TextField id="standard-basic" variant="standard" placeholder="Write a cool name for your trip here" InputProps={{ sx: { '& input': { textAlign: 'center', color:'white' } } }}/>
<Stack justifyContent="space-evenly" xs={12} sm={12} md={12} container spacing={{ xs: 2, md: 3 }} direction={'row'}>
<SharePageList concerts={concerts1} />
<SharePageList concerts={concerts2} />
Expand Down

0 comments on commit 4bda986

Please sign in to comment.