Skip to content

Commit 7a0cb64

Browse files
docs: fix import copied from illustrations (#8719)
* fix import copied from illustrations * Update .storybook-s2/docs/Illustrations.jsx Co-authored-by: Yihui Liao <[email protected]> --------- Co-authored-by: Yihui Liao <[email protected]>
1 parent c1a9b03 commit 7a0cb64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.storybook-s2/docs/Illustrations.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function Illustrations() {
3535
size="XS"
3636
isQuiet
3737
aria-label="Copy"
38-
onPress={() => navigator.clipboard.writeText(`import ${name} from '@react-spectrum/s2/illustrations/gradient/${gradientStyle}/${icon}';`)}>
38+
onPress={() => navigator.clipboard.writeText(`import ${icon} from '@react-spectrum/s2/illustrations/gradient/${gradientStyle}/${icon}';`)}>
3939
<Paste />
4040
</ActionButton>
4141
</span>

0 commit comments

Comments
 (0)