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