Skip to content

Commit

Permalink
fix: prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
lauti7 committed Jan 18, 2024
1 parent 82562eb commit 8041102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Navbar/Navbar.container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const mapState = (state: RootState): MapStateProps => ({
})

const mapDispatch = (dispatch: MapDispatch): MapDispatchProps => ({
onClickSignIn: () => dispatch(push(locations.signIn()))
onSignIn: () => dispatch(push(locations.signIn()))
})

const mergeProps = (mapStateProps: MapStateProps, mapDispatchProps: MapDispatchProps, ownProps: OwnProps) => ({
Expand Down
4 changes: 2 additions & 2 deletions src/components/Navbar/Navbar.types.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { NavbarProps } from 'decentraland-ui/dist/components/Navbar/Navbar.types'
import { NavbarProps } from 'decentraland-dapps/dist/containers/Navbar/Navbar.types'
import { Dispatch } from 'redux'

export type Props = Partial<NavbarProps> & { isNewNavbarEnabled: boolean; hasPendingTransactions: boolean }

export type MapStateProps = Pick<Props, 'hasPendingTransactions' | 'isSignedIn' | 'isNewNavbarEnabled'>
export type MapDispatchProps = Pick<Props, 'onClickSignIn'>
export type MapDispatchProps = Pick<Props, 'onSignIn'>
export type MapDispatch = Dispatch
export type OwnProps = Partial<Props>

0 comments on commit 8041102

Please sign in to comment.