refactor: add Subscribe Plan menu item and implement subscription management pages
This commit is contained in:
@@ -8,15 +8,6 @@ type TSubscriptions = {
|
||||
status: string
|
||||
}
|
||||
|
||||
type TSubSettings = {
|
||||
id: number
|
||||
createdAt: string
|
||||
subscriber: 'Monthly' | 'Yearly' | 'Weekly' | 'Special'
|
||||
price: string
|
||||
length: '30' | '365' | '7' | '1'
|
||||
status: string
|
||||
}
|
||||
|
||||
export const SUBSCRIPTIONS: TSubscriptions[] = [
|
||||
{
|
||||
id: 1,
|
||||
@@ -199,86 +190,3 @@ export const SUBSCRIPTIONS: TSubscriptions[] = [
|
||||
status: 'Draft',
|
||||
},
|
||||
]
|
||||
|
||||
export const SUBSETTINGS: TSubSettings[] = [
|
||||
{
|
||||
id: 1,
|
||||
createdAt: '24/10/2024',
|
||||
subscriber: 'Monthly',
|
||||
price: '100',
|
||||
length: '30',
|
||||
status: 'active',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
createdAt: '25/10/2024',
|
||||
subscriber: 'Yearly',
|
||||
price: '1000',
|
||||
length: '365',
|
||||
status: 'active',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
createdAt: '26/10/2024',
|
||||
subscriber: 'Weekly',
|
||||
price: '25',
|
||||
length: '7',
|
||||
status: 'inactive',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
createdAt: '27/10/2024',
|
||||
subscriber: 'Monthly',
|
||||
price: '100',
|
||||
length: '30',
|
||||
status: 'active',
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
createdAt: '28/10/2024',
|
||||
subscriber: 'Yearly',
|
||||
price: '1000',
|
||||
length: '365',
|
||||
status: 'inactive',
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
createdAt: '29/10/2024',
|
||||
subscriber: 'Weekly',
|
||||
price: '25',
|
||||
length: '7',
|
||||
status: 'active',
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
createdAt: '30/10/2024',
|
||||
subscriber: 'Monthly',
|
||||
price: '100',
|
||||
length: '30',
|
||||
status: 'inactive',
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
createdAt: '31/10/2024',
|
||||
subscriber: 'Yearly',
|
||||
price: '1000',
|
||||
length: '365',
|
||||
status: 'active',
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
createdAt: '01/11/2024',
|
||||
subscriber: 'Weekly',
|
||||
price: '25',
|
||||
length: '7',
|
||||
status: 'inactive',
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
createdAt: '02/11/2024',
|
||||
subscriber: 'Monthly',
|
||||
price: '100',
|
||||
length: '30',
|
||||
status: 'active',
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user