Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ProFreeSubcription.js #400

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 52 additions & 41 deletions src/pages/Pro-Free-Subscribtion/ProFreeSubcription.js
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
// ProFreeSubscription.js
import React from 'react';
import PropTypes from 'prop-types';
import PriceCard from '../../components/Common/Price Card/PriceCard';
import "./ProFreeSubcription.css"
const ProFreeSubcription = () => {
import "./ProFreeSubscription.css";

const pricingPlans = [
{
title: 'Basic',
price: 'Free',
features: ['Portfolio insights (Limited Modules)', 'No subscription'],
},
{
title: 'PRO',
price: '$13.99',
features: [
'Full Access',
'Exchange, wallet & broker connections (Max. 2)',
'Auto-refreshing prices',
'Multi-device syncing (2 devices)',
'Extended hours',
'Insider moves',
'Monochrome mode',
'Exclusive early access',
],
},
{
title: 'Lifetime PRO',
price: '$499.99',
features: [
'Full Access',
'Unlimited connections',
'Auto-refreshing prices',
'Multi-device syncing (Unlimited)',
'Extended hours',
'Insider moves',
'Monochrome mode',
'Exclusive early access',
],
},
];


const pricingPlans = [
{
title: 'Basic',
price: 'Free',
features: ['Portfolio insights (Limited Modules)', 'No subscription'],
},
{
title: 'PRO',
price: '$13.99',
features: [
'Full Access',
'Exchange, wallet & broker connections (Max. 2)',
'Auto-refreshing prices',
'Multi-device syncing (2 devices)',
'Extended hours',
'Insider moves',
'Monochrome mode',
'Exclusive early access',
],
},
{
title: 'Lifetime PRO',
price: '$499.99',
features: [
'Full Access',
'Unlimited connections',
'Auto-refreshing prices',
'Multi-device syncing (Unlimited)',
'Extended hours',
'Insider moves',
'Monochrome mode',
'Exclusive early access',
],
},
];

const ProFreeSubscription = () => {
return (
<div className="pricing-container">
{pricingPlans.map((plan, index) => (
Expand All @@ -49,11 +49,22 @@ const ProFreeSubcription = () => {
title={plan.title}
price={plan.price}
features={plan.features}
isHighlighted={plan.title === 'PRO'} // Highlight the PRO plan
isHighlighted={plan.title === 'PRO'}
/>
))}
</div>
);
};

export default ProFreeSubcription;
// PropTypes for extra validation
ProFreeSubscription.propTypes = {
pricingPlans: PropTypes.arrayOf(
PropTypes.shape({
title: PropTypes.string.isRequired,
price: PropTypes.string.isRequired,
features: PropTypes.arrayOf(PropTypes.string).isRequired,
})
),
};

export default ProFreeSubscription;
Loading