-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add empty subscription settings screen to navigation #42514
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
import HeaderWithBackButton from '@components/HeaderWithBackButton'; | ||
import * as Illustrations from '@components/Icon/Illustrations'; | ||
import ScreenWrapper from '@components/ScreenWrapper'; | ||
import useWindowDimensions from '@hooks/useWindowDimensions'; | ||
import Navigation from '@libs/Navigation/Navigation'; | ||
|
||
function SubscriptionSettingsPage() { | ||
const {isSmallScreenWidth} = useWindowDimensions(); | ||
|
||
return ( | ||
<ScreenWrapper testID={SubscriptionSettingsPage.displayName}> | ||
<HeaderWithBackButton | ||
title="Subscription" | ||
onBackButtonPress={() => Navigation.goBack()} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should this specifically go to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking at some other setting screens, it's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't feel super strongly, let's merge as-is and we can adjust later if we want |
||
shouldShowBackButton={isSmallScreenWidth} | ||
icon={Illustrations.CreditCardsNew} | ||
/> | ||
</ScreenWrapper> | ||
); | ||
} | ||
|
||
SubscriptionSettingsPage.displayName = 'SubscriptionSettingsPage'; | ||
|
||
export default SubscriptionSettingsPage; |
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.
Shouldn't we add this to translations?
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.
Sure, my bad