-
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.
- Loading branch information
Melisa Anabella Rossi
committed
Oct 3, 2024
1 parent
fa0971b
commit 30cd6fd
Showing
19 changed files
with
336 additions
and
48 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
48 changes: 48 additions & 0 deletions
48
src/components/Modals/PutForSaleOffchainModal/PutForSaleOffchainModal.module.css
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.modalTitle { | ||
font-size: 20px; | ||
font-weight: 700; | ||
line-height: 32px; | ||
text-align: center; | ||
} | ||
|
||
.modalSubtitle { | ||
font-size: 16px; | ||
line-height: 24px; | ||
text-align: center; | ||
} | ||
|
||
:global(.PutForSaleOffchainModal.ui.modal > .content) { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.modalContent { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
max-width: 500px; | ||
padding: 40px 0; | ||
} | ||
|
||
.modalIcon { | ||
background: var(--secondary-text); | ||
border-radius: 50%; | ||
width: 80px; | ||
height: 80px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.modalIcon :global(i.icon) { | ||
margin: 0; | ||
} | ||
|
||
.error { | ||
max-width: 100%; | ||
overflow: hidden; | ||
color: var(--error); | ||
} |
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
15 changes: 11 additions & 4 deletions
15
src/components/Modals/PutForSaleOffchainModal/PutForSaleOffchainModal.types.ts
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,22 +1,29 @@ | ||
import { ModalProps } from 'decentraland-dapps/dist/providers/ModalProvider/ModalProvider.types' | ||
import { Collection } from 'modules/collection/types' | ||
import { createItemOrderTradeRequest, CreateItemOrderTradeRequestAction } from 'modules/item/actions' | ||
import { | ||
cancelItemOrderTradeRequest, | ||
CancelItemOrderTradeRequestAction, | ||
createItemOrderTradeRequest, | ||
CreateItemOrderTradeRequestAction | ||
} from 'modules/item/actions' | ||
import { Item, ItemType } from 'modules/item/types' | ||
import { Dispatch } from 'redux' | ||
|
||
export type Props = ModalProps & { | ||
item: Item<ItemType.WEARABLE | ItemType.EMOTE> | ||
isLoading: boolean | ||
isLoadingCancel: boolean | ||
error: string | null | ||
collection?: Collection | ||
onCreateItemOrder: typeof createItemOrderTradeRequest | ||
onRemoveFromSale: typeof cancelItemOrderTradeRequest | ||
} | ||
|
||
export type EditPriceAndBeneficiaryModalMetadata = { | ||
itemId: string | ||
} | ||
|
||
export type OwnProps = Pick<Props, 'metadata' | 'item'> | ||
export type MapStateProps = Pick<Props, 'item' | 'isLoading' | 'error' | 'collection'> | ||
export type MapDispatchProps = Pick<Props, 'onCreateItemOrder'> | ||
export type MapDispatch = Dispatch<CreateItemOrderTradeRequestAction> | ||
export type MapStateProps = Pick<Props, 'item' | 'isLoading' | 'error' | 'collection' | 'isLoadingCancel'> | ||
export type MapDispatchProps = Pick<Props, 'onCreateItemOrder' | 'onRemoveFromSale'> | ||
export type MapDispatch = Dispatch<CreateItemOrderTradeRequestAction | CancelItemOrderTradeRequestAction> |
Oops, something went wrong.