[Payment card / Subscription] Implement “Subscription details” section (UI)#42975
Conversation
src/pages/settings/Subscription/SubscriptionDetails/index.native.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Subscription/SubscriptionDetails/index.native.tsx
Outdated
Show resolved
Hide resolved
|
@fabioh8010 @VickyStash @rezkiy37 PR updated! I think I addressed everything |
Reviewer Checklist
Screenshots/Videos |
|
@dubielzyk-expensify the border radius was 6px - in between 😄 The icons were indeed 20px, I changed them to 16x16, good catch! |
|
Good catch again, it's the wrong logo, can you send me a file with the light theme version of ExpensifyApproved? |
amyevans
left a comment
There was a problem hiding this comment.
Light logo change looks good! 🚀
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
|
||
| const [privateSubscription] = useOnyx(ONYXKEYS.NVP_PRIVATE_SUBSCRIPTION); | ||
| const [account] = useOnyx(ONYXKEYS.ACCOUNT); | ||
| const [preferredTheme] = useOnyx(ONYXKEYS.PREFERRED_THEME); |
There was a problem hiding this comment.
Why did you use useOnyx directly here instead of useTheme? Theme context would probably be more performant in general, plus it's just more consistent across the codebase.
| {!!account?.isApprovedAccountant || !!account?.isApprovedAccountantClient ? ( | ||
| <View style={[styles.borderedContentCard, styles.p5, styles.mt5]}> | ||
| <Icon | ||
| src={Illustrations.ExpensifyApprovedLogo} |
There was a problem hiding this comment.
Didn't you forget to update this based on the theme?
There was a problem hiding this comment.
ok, actually @JKobrynski can you please create a follow-up PR to use themed illustrations and the useThemeIllustrations hook for the ExpensifyApproved logo? see https://github.com/Expensify/App/tree/32f176fe7734c27ee0b8e0256e8a8fd5a6ac237d/src/styles/theme/illustrations
feel free to tag me on the review
|
@roryabraham @JKobrynski I moved it to a new GH so it doesn't get lost forever: #43306 |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|












Details
To access this newly created component, paste the following link into the browser
https://dev.new.expensify.com:8082/settings/subscription
or add this effect to
InitialSettingsPage.tsxFixed Issues
$ #38623
PROPOSAL: N/A
Tests
Prerequisites
To test this component you are going to need a Collect workspace or a Control workspace. To create either one go to https://staging.expensify.com and then to Settings -> Workspaces and click the New Workspace button. In the next step you can create a Collect/Control workspace, that will be available in new dot (on the same account) after login.
Offline tests
N/A
QA Steps
Same as Tests section above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop