This commit is contained in:
@@ -26,14 +26,15 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
npm install --legacy-peer-deps
|
||||
npm install -g gatsby-cli@5.12.12
|
||||
npm install -g gatsby-cli@latest
|
||||
|
||||
- name: Clean Gatsby cache
|
||||
run: npm run clean
|
||||
run: |
|
||||
gatsby clean
|
||||
|
||||
- name: Build Gatsby Site
|
||||
run: |
|
||||
npm run build
|
||||
gatsby build
|
||||
env:
|
||||
NODE_ENV: production
|
||||
CI: true
|
||||
|
||||
@@ -16,9 +16,7 @@
|
||||
"yet-another-react-lightbox": "^3.15.6",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.5.1",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||
"ajv": "^8.12.0",
|
||||
"ajv-keywords": "^5.1.0"
|
||||
"@fortawesome/react-fontawesome": "^0.2.0"
|
||||
},
|
||||
"keywords": [
|
||||
"gatsby"
|
||||
@@ -34,8 +32,7 @@
|
||||
"devDependencies": {
|
||||
"prettier": "^3.1.0"
|
||||
},
|
||||
"resolutions": {
|
||||
"ajv": "^8.12.0",
|
||||
"ajv-keywords": "^5.1.0"
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import React, { useState } from 'react'
|
||||
import Lightbox from "yet-another-react-lightbox"
|
||||
import "yet-another-react-lightbox/styles.css"
|
||||
|
||||
const Gallery = ({ images }) => {
|
||||
const Gallery = ({ images = [] }) => {
|
||||
const [isOpen, setIsOpen] = useState(false)
|
||||
const [photoIndex, setPhotoIndex] = useState(0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user