-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use PopoverMenu #7677
use PopoverMenu #7677
Conversation
@thesahindia we're also adding popovermenu to storybook yeah? |
@rushatgabhane, I tried it and I am getting this error. |
@thesahindia can you elaborate on what led you to this error? Steps would be appreciated, thanks! |
@rushatgabhane, I made App/src/components/Modal/BaseModal.js Lines 116 to 124 in fd24e0d
|
@thesahindia sorry for the delay, is it possible for you to send the code for this? Thanks |
@rushatgabhane yeah sure. import React from 'react';
import PopoverMenu from '../components/PopoverMenu';
import * as Expensicons from '../components/Icon/Expensicons';
/**
* We use the Component Story Format for writing stories. Follow the docs here:
*
* https://storybook.js.org/docs/react/writing-stories/introduction#component-story-format
*/
const story = {
title: 'Components/PopoverMenu',
component: PopoverMenu,
};
// eslint-disable-next-line react/jsx-props-no-spreading
const Template = args => <PopoverMenu {...args} />;
// Arguments can be passed to the component by binding
// See: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
const Default = Template.bind({});
Default.args = {
isVisible: true,
menuItems: [
{
text: 'Bank account',
icon: Expensicons.Bank,
},
{
text: 'Debit card',
icon: Expensicons.CreditCard,
},
{
text: 'PayPal.me',
icon: Expensicons.PayPal,
},
],
};
export default story;
export {
Default,
}; |
@thesahindia i think you need to pass anchor position
|
@rushatgabhane, I tried passing anchor position but it didn't work. |
Oh man, I can't get it to work either or find the root cause. I tried using @thesahindia could you please ask about this on slack? Thanks! |
@thesahindia looks like we have a solution. Let's get it done :) |
…/fix-payment-methods-container merge main
@rushatgabhane PR is almost ready for review, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Julesssss LGTM! 🎉️
I noticed this issue during testing, but it's unrelated as it already exists on prod. |
Hmm strange I had reported this issue on slack but I found that it won't need a separate issue as the current PR was going to solve it. |
Oh, let me try again. Maybe the mobile build didn't install |
@thesahindia yep, you're correct. Not sure what happened there 😕 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @Julesssss in version: 1.1.42-0 🚀
|
🚀 Deployed to production by @chiragsalian in version: 1.1.42-6 🚀
|
Details
Made payment methods container consistent
Fixed Issues
$ #7546
Tests
QA Steps
Tested On
Screenshots
Web
Screen.Recording.2022-02-25.at.4.26.07.AM.mov
Mobile Web
Desktop
Can't test as there is some problem on desktop appiOS
Android