Skip to content

Commit

Permalink
fix(Link): remove type omission and add TODO item
Browse files Browse the repository at this point in the history
  • Loading branch information
booc0mtaco committed Mar 15, 2024
1 parent d7c67a7 commit 047542f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/Link/Link-v2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ import Icon from '../Icon';

import styles from './Link-v2.module.css';

type LinkHTMLElementProps = Omit<
React.AnchorHTMLAttributes<HTMLAnchorElement>,
'disabled'
>;

export type LinkProps = LinkHTMLElementProps & {
export type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
// Component API
/**
* Component used to render the element. Meant to support interaction with framework navigation libraries.
* TODO-AH: support frameworks that may not use (or replace) `href` for some other prop
*
* **Default is `"a"`**.
*/
Expand Down

0 comments on commit 047542f

Please sign in to comment.