Skip to content

fix/PRO-2635/wallet-tile-api-update#162

Merged
RanaBug merged 3 commits intostagingfrom
fix/PRO-2635/wallet-tile-api-update
Sep 3, 2024
Merged

fix/PRO-2635/wallet-tile-api-update#162
RanaBug merged 3 commits intostagingfrom
fix/PRO-2635/wallet-tile-api-update

Conversation

@RanaBug
Copy link
Collaborator

@RanaBug RanaBug commented Sep 2, 2024

Description

  • Wallet tile now gets called independently from the home feed tiles

How Has This Been Tested?

  • Existing unit tests and manual testing

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@RanaBug RanaBug requested a review from IAmKio September 2, 2024 15:24
@RanaBug RanaBug self-assigned this Sep 2, 2024
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 2, 2024

Deploying x with  Cloudflare Pages  Cloudflare Pages

Latest commit: 68464ee
Status: ✅  Deploy successful!
Preview URL: https://92a63b72.x-e62.pages.dev
Branch Preview URL: https://fix-pro-2635-wallet-tile-api.x-e62.pages.dev

View logs

Copy link
Collaborator

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor comment but other than that looks good!

Comment on lines 32 to 33
export const walletTiledApi = createApi({
reducerPath: 'walletTiledApi',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

walletTiledApi seems like a spelling mistake, is it supposed to be

Suggested change
export const walletTiledApi = createApi({
reducerPath: 'walletTiledApi',
export const walletPortfolioTileApi = createApi({
reducerPath: 'walletPortfolioTileApi',

* Add this to the store
*/
addMiddleware(homeFeedApi);
addMiddleware(walletTiledApi);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
addMiddleware(walletTiledApi);
addMiddleware(walletPortfolioTileApi);

addMiddleware(walletTiledApi);

export const { useGetTilesInfoQuery } = homeFeedApi;
export const { useGetWalletInfoQuery } = walletTiledApi;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And just a reminder to change the name here too

<TileContainer id='wallet-portfolio-tile-loader' className='p-10 gap-20 tablet:p-5 mobile:p-0 mobile:bg-[#1F1D23] mobile:flex-col mobile:gap-4'>
<div className='flex flex-col justify-between'>
<SkeletonLoader $height='40px' $width='200px' $marginBottom='54px' $radius='10px' className='mobile:hidden' />
{/* <SkeletonLoader $height='40px' $width='200px' $marginBottom='54px' $radius='10px' className='mobile:hidden' /> */}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you want to remove this line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops yes!

@github-actions github-actions bot temporarily deployed to Preview (fix/PRO-2635/wallet-tile-api-update) September 3, 2024 13:17 Inactive
Copy link
Collaborator

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@github-actions github-actions bot temporarily deployed to Preview (fix/PRO-2635/wallet-tile-api-update) September 3, 2024 14:11 Inactive
@RanaBug RanaBug merged commit 641f231 into staging Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants