Skip to content

Commit

Permalink
fix(Link-v2): 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 442f5b8
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 442f5b8

Please sign in to comment.