Skip to content

Commit

Permalink
[state-router] Fix props typings for StateLink
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent daa392c commit 30aaef7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@sanity/state-router/src/components/StateLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ type Props = {
toIndex?: boolean
}

export default class StateLink extends React.PureComponent<Props> {
export default class StateLink extends React.PureComponent<
Props & React.HTMLProps<HTMLAnchorElement>
> {
context: RouterProviderContext | null = null
_element: Link | null = null

Expand Down

0 comments on commit 30aaef7

Please sign in to comment.