Skip to content

Commit 0629791

Browse files
Fix guide image src (#90)
1 parent 15dcf3d commit 0629791

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@cloudquery/plugin-config-ui-lib",
33
"description": "Plugin configuration UI library for CloudQuery Cloud App",
4-
"version": "7.1.0",
4+
"version": "7.1.1",
55
"private": false,
66
"main": "dist/index.cjs.js",
77
"module": "dist/index.esm.js",

src/components/display/setupGuide/section/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Stack from '@mui/material/Stack';
22
import Typography from '@mui/material/Typography';
33

44
import { GuideSection, GuideSectionBody } from '../../../../types';
5+
import { parseSrc } from '../../../../utils/parseSrc';
56
import { ConditionalRenderingWrapper } from '../../../controls/conditionalRenderingWrapper';
67
import { CodeSnippet } from '../../codeSnippet';
78
import { LightboxImage } from '../../lightboxImage';
@@ -50,7 +51,7 @@ function RenderGuideSectionBody({ body }: { body: GuideSectionBody }) {
5051
if (body.code) {
5152
return <CodeSnippet text={body.code} />;
5253
} else if (body.image) {
53-
return <LightboxImage key={body.image} src={body.image} alt={body.text} />;
54+
return <LightboxImage key={body.image} src={parseSrc(body.image)} alt={body.text} />;
5455
} else {
5556
return (
5657
<Typography component="div" variant="body1" color="textSecondary">

0 commit comments

Comments
 (0)