Skip to content

Commit 6cc5e90

Browse files
authored
remove extraneous arrow fn syntax from backgroundImage code sample (#924)
The usage of the arrow function syntax (`theme => ({ })`) in the code sample here is confusing because it suggests that the `theme` argument will be used elsewhere in the snippet, but it is not.
1 parent 1c5ffdd commit 6cc5e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/docs/background-image.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ You can add your own background images by editing the `theme.backgroundImage` se
4545
module.exports = {
4646
theme: {
4747
extend: {
48-
backgroundImage: theme => ({
48+
backgroundImage: {
4949
+ 'hero-pattern': "url('/img/hero-pattern.svg')",
5050
+ 'footer-texture': "url('/img/footer-texture.png')",
51-
})
51+
}
5252
}
5353
}
5454
}

0 commit comments

Comments
 (0)