diff --git a/Websites/jefes-nextjs/app/page.tsx b/Websites/jefes-nextjs/app/page.tsx index 85c6345..76b9877 100644 --- a/Websites/jefes-nextjs/app/page.tsx +++ b/Websites/jefes-nextjs/app/page.tsx @@ -5,9 +5,7 @@ import { EmblaCarousel } from "./carousel"; import Reserve from "./components/NavBar/reserveButton"; import MenuButton from "./menuButton"; import "./home.css"; -import GoogleReviews from "./components/Reviews/google_reviews"; -import MapComponent from "@/components/Maps/MapComponent"; - +import GoogleMap from "@/components/Maps/MapComponent"; export default function Home() { return ( @@ -286,7 +284,7 @@ export default function Home() {
{/* */} - +
{/*
diff --git a/Websites/jefes-nextjs/components/Maps/MapComponent.tsx b/Websites/jefes-nextjs/components/Maps/MapComponent.tsx index 7732c65..a25d8cc 100644 --- a/Websites/jefes-nextjs/components/Maps/MapComponent.tsx +++ b/Websites/jefes-nextjs/components/Maps/MapComponent.tsx @@ -1,50 +1,21 @@ "use client"; -import React from 'react' -import { GoogleMap, useJsApiLoader } from '@react-google-maps/api'; +import React from "react"; -const containerStyle = { - width: '400px', - height: '400px' +const GoogleMap = () => { + return ( + // basic bootstrap classes. you can change with yours. +
+
+ +
+
+ ); }; -const center = { - lat: 36.10787615076762, - lng: -95.70694833561868, -}; - - -function MyComponent() { - const { isLoaded } = useJsApiLoader({ - id: 'google-map-script', - googleMapsApiKey: "AIzaSyClfOGrkQNRjDFzvnTk-W7Oeh-yyDNCXN0" - }) - - const [map, setMap] = React.useState(null) - - const onLoad = React.useCallback(function callback(map:any) { - // This is just an example of getting and using the map instance!!! don't just blindly copy! - const bounds = new window.google.maps.LatLngBounds(center); - map.fitBounds(bounds); - - setMap(map) - }, []) - - const onUnmount = React.useCallback(function callback(map:any) { - setMap(null) - }, []) - - return isLoaded ? ( - - { /* Child components, such as markers, info windows, etc. */ } - <> - - ) : <> -} - -export default React.memo(MyComponent) \ No newline at end of file +export default GoogleMap;