-
Notifications
You must be signed in to change notification settings - Fork 684
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Melisa Anabella Rossi
authored
Aug 12, 2024
1 parent
e2a1f32
commit 8461f71
Showing
90 changed files
with
2,326 additions
and
2,280 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,16 @@ | ||
import { connect } from 'react-redux' | ||
import { fetchBidsByNFTRequest } from '../../../modules/bid/actions' | ||
import { fetchBidsByAssetRequest } from '../../../modules/bid/actions' | ||
import { RootState } from '../../../modules/reducer' | ||
import { getNFTBids } from '../../../modules/ui/nft/bid/selectors' | ||
import { getAssetBids } from '../../../modules/ui/asset/bid/selectors' | ||
import BidList from './BidList' | ||
import { MapStateProps, MapDispatchProps, MapDispatch } from './BidList.types' | ||
|
||
const mapState = (state: RootState): MapStateProps => ({ | ||
bids: getNFTBids(state) | ||
bids: getAssetBids(state) | ||
}) | ||
|
||
const mapDispatch = (dispatch: MapDispatch): MapDispatchProps => ({ | ||
onFetchBids: nft => dispatch(fetchBidsByNFTRequest(nft)) | ||
onFetchBids: nft => dispatch(fetchBidsByAssetRequest(nft)) | ||
}) | ||
|
||
export default connect(mapState, mapDispatch)(BidList) |
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,15 +1,15 @@ | ||
import { Dispatch } from 'redux' | ||
import { Bid } from '@dcl/schemas' | ||
import { fetchBidsByNFTRequest, FetchBidsByNFTRequestAction } from '../../../modules/bid/actions' | ||
import { fetchBidsByAssetRequest, FetchBidsByAssetRequestAction } from '../../../modules/bid/actions' | ||
import { NFT } from '../../../modules/nft/types' | ||
|
||
export type Props = { | ||
nft: NFT | ||
bids: Bid[] | ||
onFetchBids: typeof fetchBidsByNFTRequest | ||
onFetchBids: typeof fetchBidsByAssetRequest | ||
} | ||
|
||
export type MapStateProps = Pick<Props, 'bids'> | ||
export type MapDispatchProps = Pick<Props, 'onFetchBids'> | ||
export type MapDispatch = Dispatch<FetchBidsByNFTRequestAction> | ||
export type MapDispatch = Dispatch<FetchBidsByAssetRequestAction> | ||
export type OwnProps = Pick<Props, 'nft'> |
19 changes: 0 additions & 19 deletions
19
webapp/src/components/AssetPage/BidsTable/BidsTable.container.ts
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
Oops, something went wrong.