Skip to content

Commit

Permalink
fix: SVG - update generate to return JSX.Element (#76)
Browse files Browse the repository at this point in the history
Co-authored-by: Seam Bot <devops@getseam.com>
  • Loading branch information
mikewuu and seambot authored May 3, 2023
1 parent e2c52d2 commit 0e613cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/icons/Seam.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ReactNode, SVGProps } from 'react'
export const SeamIcon = (props: SVGProps<SVGSVGElement>): ReactNode => (
import type { SVGProps } from 'react'
export const SeamIcon = (props: SVGProps<SVGSVGElement>): JSX.Element => (
<svg
xmlns='http://www.w3.org/2000/svg'
width={167}
Expand Down
4 changes: 2 additions & 2 deletions svgr.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ module.exports = {
expandProps: 'none',
template: (variables, { tpl }) => {
return tpl`
import type { ReactNode, SVGProps } from 'react'
import type { SVGProps } from 'react'

${variables.interfaces};

export const ${variables.componentName.replace('Svg', '') + 'Icon'} = (${
variables.props
}): ReactNode => (
}): JSX.Element => (
${variables.jsx}
);
`
Expand Down

1 comment on commit 0e613cf

@vercel
Copy link

@vercel vercel bot commented on 0e613cf May 3, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

react – ./

seam-react.vercel.app
react-git-main-seamapi.vercel.app
react-seamapi.vercel.app

Please sign in to comment.