diff --git a/categories/web/formatted/react/package.json b/categories/web/formatted/react/package.json index 33f4879..32618c1 100644 --- a/categories/web/formatted/react/package.json +++ b/categories/web/formatted/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-formatted-react", - "version": "0.2.0", + "version": "0.2.1", "files": [ "dist", "src" diff --git a/categories/web/formatted/react/src/components/EmailInput/index.tsx b/categories/web/formatted/react/src/components/EmailInput/index.tsx index 271effa..1314b59 100644 --- a/categories/web/formatted/react/src/components/EmailInput/index.tsx +++ b/categories/web/formatted/react/src/components/EmailInput/index.tsx @@ -137,7 +137,7 @@ export const EmailInput = React.forwardRef { component: C; - href: C extends (props: { href?: infer Href }) => React.ReactNode ? Href : never; + href: C extends (props: { href: infer Href }) => React.ReactNode ? Href : never; } type LinkButtonAllProps< @@ -262,19 +262,3 @@ LinkButton.defaultProps = { // eslint-disable-next-line react/default-props-match-prop-types href: undefined, }; - -// extend the component type here for defining new props -// interface LinkButtonComponentType { -// (props: { href?: number }): React.ReactNode; -// } - -// const CustomLink = (props: { href?: string | number }) => { -// return null; -// }; -// -// const a = ( -// -// );