Skip to content

Commit 0b6f2e3

Browse files
authored
fix(gatsby-plugin-image): Correct layout proptypes in StaticImage (#29298)
1 parent 55a8b69 commit 0b6f2e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/gatsby-plugin-image/src/components/static-image.server.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ export const propTypes = {
9191
if (props.layout === undefined) {
9292
return undefined
9393
}
94-
if (validLayouts.has(props.layout.toLowerCase())) {
94+
if (validLayouts.has(props.layout)) {
9595
return undefined
9696
}
9797

9898
return new Error(
99-
`Invalid value ${props.layout}" provided for prop "layout". Defaulting to "fixed". Valid values are "fixed", "fullWidth" or "constrained".`
99+
`Invalid value ${props.layout}" provided for prop "layout". Defaulting to "constrained". Valid values are "fixed", "fullWidth" or "constrained".`
100100
)
101101
},
102102
}

0 commit comments

Comments
 (0)