Skip to content

Commit

Permalink
Merge pull request GingerDragon7#6 from shubham0794x/main
Browse files Browse the repository at this point in the history
Upgraded the UX
  • Loading branch information
GingerDragon7 authored Oct 30, 2022
2 parents 7bf7d4b + 5a89e46 commit cd98ea4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const App = () => {

getPlacesData(type, bounds.sw, bounds.ne)
.then((data) => {
setPlaces(data.filter((place) => place.name && place.num_reviews > 0));
setPlaces(data.filter((place) => place.name && place.num_reviews > 1));
setFilteredPlaces([]);
setRating('');
setIsLoading(false);
Expand Down
2 changes: 1 addition & 1 deletion src/api/travelAdvisorAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const getPlacesData = async (type, sw, ne) => {

return data;
} catch (error) {
console.log(error);
console.log("The API error message",error);
}
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/List/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { makeStyles } from '@material-ui/core/styles';

export default makeStyles((theme) => ({
formControl: {
margin: theme.spacing(1), minWidth: 120, marginBottom: '30px',
margin: theme.spacing(2), minWidth: 130, marginBottom: '30px',
},
selectEmpty: {
marginTop: theme.spacing(2),
Expand All @@ -17,6 +17,6 @@ export default makeStyles((theme) => ({
marginBottom: '32px',
},
list: {
height: '75vh', overflow: 'auto',
height: '80vh', overflow: 'auto',
},
}));
4 changes: 2 additions & 2 deletions src/components/Map/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { makeStyles } from '@material-ui/core/styles';

export default makeStyles(() => ({
paper: {
padding: '10px', display: 'flex', flexDirection: 'column', justifyContent: 'center', width: '100px',
padding: '12px', display: 'flex', flexDirection: 'column', justifyContent: 'center', width: '100px',
},
mapContainer: {
height: '85vh', width: '100%',
},
markerContainer: {
position: 'absolute', transform: 'translate(-50%, -50%)', zIndex: 1, '&:hover': { zIndex: 2 },
position: 'absolute', transform: 'translate(-50%, -50%)', zIndex: 1, '&:hover': { zIndex: 3 },
},
pointer: {
cursor: 'pointer',
Expand Down
2 changes: 1 addition & 1 deletion src/components/PlaceDetails/PlaceDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const PlaceDetails = ({ place, selected, refProp }) => {
Trip Advisor
</Button>
<Button size="small" color="primary" onClick={() => window.open(place.website, '_blank')}>
Website
Amazing Website
</Button>
</CardActions>
</Card>
Expand Down

0 comments on commit cd98ea4

Please sign in to comment.