mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-31 18:32:36 +01:00
Fix marketplace style
This commit is contained in:
parent
63a77f9005
commit
04e6d3eeea
@ -1,7 +1,7 @@
|
|||||||
import { CancelMarketplaceOfferMessageComposer, GetMarketplaceOwnOffersMessageComposer, MarketplaceCancelOfferResultEvent, MarketplaceOwnOffersEvent, RedeemMarketplaceOfferCreditsMessageComposer } from '@nitrots/nitro-renderer';
|
import { CancelMarketplaceOfferMessageComposer, GetMarketplaceOwnOffersMessageComposer, MarketplaceCancelOfferResultEvent, MarketplaceOwnOffersEvent, RedeemMarketplaceOfferCreditsMessageComposer } from '@nitrots/nitro-renderer';
|
||||||
import { FC, useCallback, useMemo, useState } from 'react';
|
import { FC, useCallback, useMemo, useState } from 'react';
|
||||||
import { LocalizeText, SendMessageComposer } from '../../../../../../api';
|
import { LocalizeText, SendMessageComposer } from '../../../../../../api';
|
||||||
import { Button, Column, Grid, Text } from '../../../../../../common';
|
import { Button, Column, Text } from '../../../../../../common';
|
||||||
import { BatchUpdates, UseMessageEventHook, UseMountEffect } from '../../../../../../hooks';
|
import { BatchUpdates, UseMessageEventHook, UseMountEffect } from '../../../../../../hooks';
|
||||||
import { NotificationAlertType } from '../../../../../../views/notification-center/common/NotificationAlertType';
|
import { NotificationAlertType } from '../../../../../../views/notification-center/common/NotificationAlertType';
|
||||||
import { NotificationUtilities } from '../../../../../../views/notification-center/common/NotificationUtilities';
|
import { NotificationUtilities } from '../../../../../../views/notification-center/common/NotificationUtilities';
|
||||||
@ -103,9 +103,9 @@ export const CatalogLayoutMarketplaceOwnItemsView: FC<CatalogLayoutProps> = prop
|
|||||||
<Text truncate shrink fontWeight="bold">
|
<Text truncate shrink fontWeight="bold">
|
||||||
{ LocalizeText('catalog.marketplace.items_found', [ 'count' ], [ offers.length.toString() ]) }
|
{ LocalizeText('catalog.marketplace.items_found', [ 'count' ], [ offers.length.toString() ]) }
|
||||||
</Text>
|
</Text>
|
||||||
<Grid overflow="auto" className="nitro-catalog-layout-marketplace-grid">
|
<Column overflow="auto" className="nitro-catalog-layout-marketplace-grid">
|
||||||
{ (offers.length > 0) && offers.map(offer => <CatalogLayoutMarketplaceItemView key={ offer.offerId } offerData={ offer } type={ OWN_OFFER } onClick={ takeItemBack } />) }
|
{ (offers.length > 0) && offers.map(offer => <CatalogLayoutMarketplaceItemView key={ offer.offerId } offerData={ offer } type={ OWN_OFFER } onClick={ takeItemBack } />) }
|
||||||
</Grid>
|
</Column>
|
||||||
</Column>
|
</Column>
|
||||||
</Column>
|
</Column>
|
||||||
);
|
);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { BuyMarketplaceOfferMessageComposer, GetMarketplaceOffersMessageComposer, MarketplaceBuyOfferResultEvent, MarketPlaceOffersEvent } from '@nitrots/nitro-renderer';
|
import { BuyMarketplaceOfferMessageComposer, GetMarketplaceOffersMessageComposer, MarketplaceBuyOfferResultEvent, MarketPlaceOffersEvent } from '@nitrots/nitro-renderer';
|
||||||
import { FC, useCallback, useMemo, useState } from 'react';
|
import { FC, useCallback, useMemo, useState } from 'react';
|
||||||
import { LocalizeText, SendMessageComposer } from '../../../../../../api';
|
import { LocalizeText, SendMessageComposer } from '../../../../../../api';
|
||||||
import { Button, ButtonGroup, Column, Grid, Text } from '../../../../../../common';
|
import { Button, ButtonGroup, Column, Text } from '../../../../../../common';
|
||||||
import { BatchUpdates, UseMessageEventHook } from '../../../../../../hooks';
|
import { BatchUpdates, UseMessageEventHook } from '../../../../../../hooks';
|
||||||
import { NotificationAlertType } from '../../../../../../views/notification-center/common/NotificationAlertType';
|
import { NotificationAlertType } from '../../../../../../views/notification-center/common/NotificationAlertType';
|
||||||
import { NotificationUtilities } from '../../../../../../views/notification-center/common/NotificationUtilities';
|
import { NotificationUtilities } from '../../../../../../views/notification-center/common/NotificationUtilities';
|
||||||
@ -159,11 +159,11 @@ export const CatalogLayoutMarketplacePublicItemsView: FC<CatalogLayoutMarketplac
|
|||||||
<Text truncate shrink fontWeight="bold">
|
<Text truncate shrink fontWeight="bold">
|
||||||
{ LocalizeText('catalog.marketplace.items_found', [ 'count' ], [ offers.size.toString() ]) }
|
{ LocalizeText('catalog.marketplace.items_found', [ 'count' ], [ offers.size.toString() ]) }
|
||||||
</Text>
|
</Text>
|
||||||
<Grid className="nitro-catalog-layout-marketplace-grid" overflow="auto">
|
<Column className="nitro-catalog-layout-marketplace-grid" overflow="auto">
|
||||||
{
|
{
|
||||||
Array.from(offers.values()).map( (entry, index) => <CatalogLayoutMarketplaceItemView key={ index } offerData={ entry } type={ PUBLIC_OFFER } onClick={purchaseItem} />)
|
Array.from(offers.values()).map( (entry, index) => <CatalogLayoutMarketplaceItemView key={ index } offerData={ entry } type={ PUBLIC_OFFER } onClick={purchaseItem} />)
|
||||||
}
|
}
|
||||||
</Grid>
|
</Column>
|
||||||
</Column>
|
</Column>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user