Skip to content

Commit

Permalink
Fix props type in options function (#6545)
Browse files Browse the repository at this point in the history
* Adds NavigationComponentProps (e.g. `componentId`) to options function (`(props) => Options`)

Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
  • Loading branch information
mrousavy and guyca authored Sep 8, 2020
1 parent 3a4dd01 commit a3a796a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/interfaces/NavigationFunctionComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import { Options } from './Options';

export interface NavigationFunctionComponent<Props = {}>
extends React.FunctionComponent<Props & NavigationComponentProps> {
options?: ((props: Props) => Options) | Options;
options?: ((props: Props & NavigationComponentProps) => Options) | Options;
}

0 comments on commit a3a796a

Please sign in to comment.