Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. const Settings = (onBack, isLandscape, plans, currentPlan, setCurrentPlan) => {
  2. <SettingsSubscription
  3. onBack={onBack}
  4. isLandscape={isLandscape}
  5. plans={plans}
  6. currentPlan={currentPlan}
  7. setCurrentPlan={setCurrentPlan}
  8. />
  9. }
  10.  
  11. const options = [
  12. {
  13. title: 'Subscription',
  14. subtitle: plans[currentPlan].name,
  15. renderDetail: ({ selectedOption, onBack, isLandscape }) => Settings(onBack, isLandscape, plans, currentPlan, setCurrentPlan)
  16. }
  17. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement