mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-24 06:02:36 +03:00
Add PremiumPromo PremiumLevel
This commit is contained in:
parent
662dc66203
commit
39c82c2661
@ -11,6 +11,7 @@ module Nri.Ui.Data.PremiumLevel exposing (PremiumLevel(..), allowedFor, highest,
|
|||||||
type PremiumLevel
|
type PremiumLevel
|
||||||
= Free
|
= Free
|
||||||
| Premium
|
| Premium
|
||||||
|
| PremiumPromo
|
||||||
| PremiumWithWriting
|
| PremiumWithWriting
|
||||||
|
|
||||||
|
|
||||||
@ -44,9 +45,12 @@ order : PremiumLevel -> Int
|
|||||||
order privileges =
|
order privileges =
|
||||||
case privileges of
|
case privileges of
|
||||||
PremiumWithWriting ->
|
PremiumWithWriting ->
|
||||||
2
|
3
|
||||||
|
|
||||||
Premium ->
|
Premium ->
|
||||||
|
2
|
||||||
|
|
||||||
|
PremiumPromo ->
|
||||||
1
|
1
|
||||||
|
|
||||||
Free ->
|
Free ->
|
||||||
|
@ -107,6 +107,9 @@ premium config =
|
|||||||
PremiumLevel.Premium ->
|
PremiumLevel.Premium ->
|
||||||
config.showPennant
|
config.showPennant
|
||||||
|
|
||||||
|
PremiumLevel.PremiumPromo ->
|
||||||
|
config.showPennant
|
||||||
|
|
||||||
PremiumLevel.PremiumWithWriting ->
|
PremiumLevel.PremiumWithWriting ->
|
||||||
config.showPennant
|
config.showPennant
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user