Skip to content

Commit

Permalink
Merge pull request #624 from gregberge/various-things
Browse files Browse the repository at this point in the history
chore: fix ref following refactoring
  • Loading branch information
gregberge committed Nov 13, 2021
2 parents 261e1b5 + f61c8ba commit 6ba16a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/babel-preset/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const plugin = (_: ConfigAPI, opts: Options) => {
...toAddAttributes,
{
name: 'ref',
value: 'svgRef',
value: 'ref',
literal: true,
},
]
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/src/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const SvgFile = (props, ref) => (
width={48}
height={1}
xmlns=\\"http://www.w3.org/2000/svg\\"
ref={svgRef}
ref={ref}
{...props}
>
<Path d=\\"M0 0h48v1H0z\\" fill=\\"#063855\\" fillRule=\\"evenodd\\" />
Expand Down Expand Up @@ -375,7 +375,7 @@ const SvgFile = (props, ref) => (
width={48}
height={1}
xmlns=\\"http://www.w3.org/2000/svg\\"
ref={svgRef}
ref={ref}
{...props}
>
<path d=\\"M0 0h48v1H0z\\" fill=\\"#063855\\" fillRule=\\"evenodd\\" />
Expand Down Expand Up @@ -460,7 +460,7 @@ const SvgFile = (
width={48}
height={1}
xmlns=\\"http://www.w3.org/2000/svg\\"
ref={svgRef}
ref={ref}
aria-labelledby={titleId}
{...props}
>
Expand All @@ -484,7 +484,7 @@ const SvgFile = (props: SVGProps<SVGSVGElement>, ref: Ref<SVGSVGElement>) => (
width={48}
height={1}
xmlns=\\"http://www.w3.org/2000/svg\\"
ref={svgRef}
ref={ref}
{...props}
>
<path d=\\"M0 0h48v1H0z\\" fill=\\"#063855\\" fillRule=\\"evenodd\\" />
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/__snapshots__/transform.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const SvgComponent = (props, ref) => (
width={88}
height={88}
xmlns=\\"http://www.w3.org/2000/svg\\"
ref={svgRef}
ref={ref}
{...props}
>
<G
Expand Down Expand Up @@ -274,7 +274,7 @@ const SvgComponent = (props, ref) => (
width={88}
height={88}
xmlns=\\"http://www.w3.org/2000/svg\\"
ref={svgRef}
ref={ref}
{...props}
>
<g
Expand Down

1 comment on commit 6ba16a3

@vercel
Copy link

@vercel vercel bot commented on 6ba16a3 Nov 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.