diff --git a/projects/account/src/app/profile/profile.module.ts b/projects/account/src/app/profile/profile.module.ts
index ce4457a..1454c24 100644
--- a/projects/account/src/app/profile/profile.module.ts
+++ b/projects/account/src/app/profile/profile.module.ts
@@ -19,6 +19,7 @@ import { LoginComponent } from './login/login.component';
import { ProfileComponent } from './profile.component';
import { ProfileService } from './profile.service';
import { SubscriptionComponent } from './subscription/subscription.component';
+import { SharedModule } from 'shared';
@NgModule({
declarations: [
@@ -41,7 +42,8 @@ import { SubscriptionComponent } from './subscription/subscription.component';
MatExpansionModule,
MatFormFieldModule,
MatInputModule,
- MatToolbarModule
+ MatToolbarModule,
+ SharedModule
],
providers: [
ProfileService
diff --git a/projects/account/src/app/profile/subscription/subscription.component.html b/projects/account/src/app/profile/subscription/subscription.component.html
index 7ed5b13..2ee8724 100644
--- a/projects/account/src/app/profile/subscription/subscription.component.html
+++ b/projects/account/src/app/profile/subscription/subscription.component.html
@@ -4,14 +4,7 @@
Mycroft supporters gain access to premium services, such as voices.
-
-
-
- {{subscription.name}}
- {{subscription.price}} USD
-
-
-
+
Proudly supporting Mycroft for {{subscriptionDuration}}
diff --git a/projects/account/src/app/profile/subscription/subscription.component.ts b/projects/account/src/app/profile/subscription/subscription.component.ts
index f0f013e..d83ef70 100644
--- a/projects/account/src/app/profile/subscription/subscription.component.ts
+++ b/projects/account/src/app/profile/subscription/subscription.component.ts
@@ -1,7 +1,9 @@
-import { Component, OnDestroy } from '@angular/core';
+import { Component, Input, OnDestroy } from '@angular/core';
import { MediaChange, MediaObserver } from '@angular/flex-layout';
import { Subscription } from 'rxjs';
+import { Membership } from '../profile.service';
+
export interface SubscriptionType {
name: string;
price: string;
@@ -9,17 +11,17 @@ export interface SubscriptionType {
}
const nonSupporter: SubscriptionType = {
- name: 'NON-SUPPORTER',
+ name: 'Maybe Later',
price: '$0',
period: null
};
const monthlySupporter: SubscriptionType = {
- name: 'MONTHLY SUPPORTER',
+ name: 'Monthly Supporter',
price: '$1.99',
period: 'month'
};
const yearlySupporter: SubscriptionType = {
- name: 'YEARLY SUPPORTER',
+ name: 'Yearly Supporter',
price: '$19.99',
period: 'year'
};
@@ -31,6 +33,7 @@ const yearlySupporter: SubscriptionType = {
styleUrls: ['./subscription.component.scss']
})
export class SubscriptionComponent implements OnDestroy {
+ @Input() accountMembership: Membership;
public subscriptionTypes: SubscriptionType[];
public subscriptionDuration = '3 years 10 months';
public alignVertical: boolean;