Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
176
Issues
176
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Commits
563e5abd
Commit
563e5abd
authored
23 hours ago
by
Martin Santangelo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat) tiers carousel show /month only for recurring
parent
dd68c49f
epic/wire-37
1 merge request
!325
WIP: [Sprint/ModestMonkey] wire epic 37
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
FabScreen.js
src/wire/FabScreen.js
+1
-0
SubscriptionTierCarousel.js
src/wire/tiers/SubscriptionTierCarousel.js
+7
-2
No files found.
src/wire/FabScreen.js
View file @
563e5abd
...
...
@@ -185,6 +185,7 @@ export default class FabScreen extends Component {
amount
=
{
amount
}
rewards
=
{
this
.
props
.
wire
.
owner
.
wire_rewards
.
rewards
}
currency
=
{
this
.
props
.
wire
.
currency
}
recurring
=
{
this
.
props
.
wire
.
recurring
}
onTierSelected
=
{
this
.
props
.
wire
.
setTier
}
/>
}
<
/View
>
...
...
This diff is collapsed.
Click to expand it.
src/wire/tiers/SubscriptionTierCarousel.js
View file @
563e5abd
...
...
@@ -42,7 +42,7 @@ export default class SubscriptionTierCarousel extends PureComponent {
*/
getRewards
()
{
const
rewards
=
[{
amount
:
0
,
amount
:
0
,
description
:
'
Custom
'
,
}];
const
methodsMap
=
[{
method
:
'
tokens
'
,
currency
:
'
tokens
'
}];
...
...
@@ -83,10 +83,15 @@ export default class SubscriptionTierCarousel extends PureComponent {
_renderItem
=
(
row
)
=>
{
const
amount
=
row
.
item
.
amount
||
this
.
props
.
amount
;
const
currency
=
row
.
item
.
currency
||
this
.
props
.
currency
;
const
recurring
=
this
.
props
.
recurring
;
const
amountText
=
amount
+
'
'
+
this
.
getPluralizedCurrency
(
currency
,
row
.
item
.
amount
);
const
text
=
recurring
?
i18n
.
t
(
'
wire.amountMonth
'
,
{
amount
:
amountText
})
:
amountText
;
return
(
<
View
key
=
{
`rewards
${
row
.
item
.
amount
}
`
}
style
=
{[
CS
.
rowJustifyCenter
,
CS
.
backgroundLightGreyed
,
CS
.
borderRadius5x
,
CS
.
padding2x
,
CS
.
border
,
CS
.
borderGreyed
]}
>
<
View
style
=
{
CS
.
columnAlignCenter
}
>
<
Text
style
=
{[
CS
.
fontXXL
,
CS
.
fontMedium
,
CS
.
colorDark
]}
>
{
i18n
.
t
(
'
wire.amountMonth
'
,{
amount
:
amount
+
'
'
+
this
.
getPluralizedCurrency
(
currency
,
row
.
item
.
amount
)})
}
<
/Text
>
<
Text
style
=
{[
CS
.
fontXXL
,
CS
.
fontMedium
,
CS
.
colorDark
]}
>
{
text
}
<
/Text
>
<
Text
numberOfLines
=
{
5
}
style
=
{[
CS
.
fontL
,
CS
.
fontHairline
,
CS
.
colorDark
]}
>
{
row
.
item
.
description
}
<
/Text
>
<
/View
>
<
/View
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment