diff --git a/components/CustomNextImage.js b/components/CustomNextImage.js index 375364d..b08e71a 100644 --- a/components/CustomNextImage.js +++ b/components/CustomNextImage.js @@ -30,7 +30,6 @@ const CustomStylesContainer = styled.div` } `; - const CustomNextImage = (props) => { const { height, width, src, onLoad, ...other } = props; const [onLoadCount, setOnloadCount] = useState(0); @@ -50,7 +49,7 @@ const CustomNextImage = (props) => { setOnloadCount((prev) => prev + 1); if (onLoad) onLoad(e); }} - src={imageUrl} + src={src} objectFit="cover" width={width} height={height} diff --git a/pages/photos.js b/pages/photos.js index 54cc7f4..f08fdd8 100644 --- a/pages/photos.js +++ b/pages/photos.js @@ -1,7 +1,7 @@ import Head from 'next/head'; import { RiExternalLinkLine } from 'react-icons/ri'; import styled from 'styled-components'; -import CustomNextCloudinaryImage from '../components/CustomNextCloudinaryImage'; +import CustomNextImage from '../components/CustomNextImage'; import Layout from '../components/Layout'; import useUser from '../lib/useUser'; @@ -88,14 +88,13 @@ export default function PhotosPage() { Link to full photo gallery - {photos.map((photo, index) => ( - ( + ))} diff --git a/utils/db.js b/utils/db.js index 141f7f9..b113030 100644 --- a/utils/db.js +++ b/utils/db.js @@ -20,7 +20,7 @@ async function connectDb() { // try { // // Confirm connection - // await client.db('waddle').command({ ping: 1 }); + // await client.db('weddinguser').command({ ping: 1 }); // console.log('🗄️ Connected to DB Success'); // } catch (e) { // console.error(e);