Skip to content

Commit

Permalink
Update Figma images
Browse files Browse the repository at this point in the history
  • Loading branch information
Figma Images Action authored and lukasoppermann committed Oct 1, 2024
1 parent cc66e40 commit ee9bc7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"build:preview": "gatsby build",
"now-build": "yarn build",
"lint": "eslint .",
"markdownlint": "markdownlint-cli2 \"**/*.{md,mdx}\" \"!.github\" \"!node_modules\""
"markdownlint": "markdownlint-cli2 \"**/*.{md,mdx}\" \"!.github\" \"!node_modules\"",
"copy:figma-images": "mkdir -p public/images && cp -r content/images/figma public/images"
},
"dependencies": {
"@github/prettier-config": "^0.0.6",
Expand Down
2 changes: 1 addition & 1 deletion src/components/figma-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type FigmaImageProps = React.ImgHTMLAttributes<HTMLImageElement> & {
caption?: string
}

const FigmaImageDir = 'content/images/figma';
const FigmaImageDir = 'public/images/figma';

export const FigmaImage: React.FC<FigmaImageProps> = ({src, caption, ...props}) => {
// check for missing prop
Expand Down

0 comments on commit ee9bc7c

Please sign in to comment.