-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove connected react router push from components (#3122)
- Loading branch information
Melisa Anabella Rossi
authored
Jun 12, 2024
1 parent
558fa49
commit 4683ff3
Showing
21 changed files
with
55 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
import { Dispatch } from 'redux' | ||
import { Land } from 'modules/land/types' | ||
import { CallHistoryMethodAction } from 'connected-react-router' | ||
import { RouteComponentProps } from 'react-router' | ||
|
||
export type Props = { | ||
land: Land | ||
title?: React.ReactNode | ||
subtitle?: React.ReactNode | ||
children: React.ReactNode | ||
onNavigate: (path: string) => void | ||
} | ||
|
||
export type MapDispatchProps = Pick<Props, 'onNavigate'> | ||
export type MapDispatch = Dispatch<CallHistoryMethodAction> | ||
} & RouteComponentProps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import LandAction from './LandAction.container' | ||
import LandAction from './LandAction' | ||
export default LandAction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
import { Dispatch } from 'redux' | ||
import { CallHistoryMethodAction } from 'connected-react-router' | ||
import { RouteComponentProps } from 'react-router-dom' | ||
import { ENS } from 'modules/ens/types' | ||
import { SetENSContentRequestAction } from 'modules/ens/actions' | ||
|
||
export type Props = { | ||
ens: ENS | ||
isLoading: boolean | ||
onNavigate: (path: string) => void | ||
onIconClick: () => void | ||
} | ||
} & RouteComponentProps | ||
|
||
export type MapStateProps = Pick<Props, 'isLoading'> | ||
export type MapDispatchProps = Pick<Props, 'onNavigate'> | ||
export type MapDispatch = Dispatch<CallHistoryMethodAction | SetENSContentRequestAction> | ||
export type OwnProps = Pick<Props, 'ens' | 'onIconClick'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
import { Dispatch } from 'redux' | ||
import { CallHistoryMethodAction } from 'connected-react-router' | ||
import { RouteComponentProps } from 'react-router-dom' | ||
import { Land, Rental } from 'modules/land/types' | ||
import { Deployment } from 'modules/deployment/types' | ||
|
||
export type Props = { | ||
land: Land | ||
deployments: Deployment[] | ||
rental: Rental | null | ||
onNavigate: (path: string) => void | ||
} | ||
} & RouteComponentProps | ||
|
||
export type MapStateProps = Pick<Props, 'deployments' | 'rental'> | ||
export type MapDispatchProps = Pick<Props, 'onNavigate'> | ||
export type MapDispatch = Dispatch<CallHistoryMethodAction> | ||
export type OwnProps = Pick<Props, 'land'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters