@@ -316,39 +316,39 @@ const PaymentActivationDialog = ({ open, onOpenChange, user, onSuccess }) => {
{useCustomPeriod ? (
+
{selectedPlan.custom_cycle_enabled ? (
<>
- Plan uses custom billing cycle:
+ Plan uses custom billing cycle:
{(() => {
const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
@@ -367,8 +367,8 @@ const PaymentActivationDialog = ({ open, onOpenChange, user, onSuccess }) => {
Starts today, ends {selectedPlan.billing_cycle === 'monthly' ? '30 days' :
selectedPlan.billing_cycle === 'quarterly' ? '90 days' :
- selectedPlan.billing_cycle === 'yearly' ? '1 year' :
- selectedPlan.billing_cycle === 'lifetime' ? 'lifetime' : '1 year'} from now
+ selectedPlan.billing_cycle === 'yearly' ? '1 year' :
+ selectedPlan.billing_cycle === 'lifetime' ? 'lifetime' : '1 year'} from now
)}
@@ -378,15 +378,15 @@ const PaymentActivationDialog = ({ open, onOpenChange, user, onSuccess }) => {
{/* Notes */}
-
@@ -395,14 +395,14 @@ const PaymentActivationDialog = ({ open, onOpenChange, user, onSuccess }) => {
type="button"
variant="outline"
onClick={() => onOpenChange(false)}
- className="rounded-full border-2 border-[#ddd8eb]"
+ className="rounded-full border-2 border-chart-6"
>
Cancel
diff --git a/src/components/PendingInvitationsTable.js b/src/components/PendingInvitationsTable.js
index aaece9a..21c6d29 100644
--- a/src/components/PendingInvitationsTable.js
+++ b/src/components/PendingInvitationsTable.js
@@ -73,9 +73,9 @@ const PendingInvitationsTable = () => {
const getRoleBadge = (role) => {
const config = {
- superadmin: { label: 'Superadmin', className: 'bg-[#664fa3] text-white' },
- admin: { label: 'Admin', className: 'bg-[#81B29A] text-white' },
- member: { label: 'Member', className: 'bg-[#DDD8EB] text-[#422268]' }
+ superadmin: { label: 'Superadmin', className: 'bg-muted-foreground text-white' },
+ admin: { label: 'Admin', className: 'bg-success text-white' },
+ member: { label: 'Member', className: 'bg-chart-6 text-primary' }
};
const roleConfig = config[role] || { label: role, className: 'bg-gray-500 text-white' };
@@ -111,7 +111,7 @@ const PendingInvitationsTable = () => {
if (loading) {
return (
-
+
Loading invitations...
@@ -120,12 +120,12 @@ const PendingInvitationsTable = () => {
if (invitations.length === 0) {
return (
-
-
-
+
+
+
No Pending Invitations
-
+
All invitations have been accepted or expired
@@ -134,37 +134,37 @@ const PendingInvitationsTable = () => {
return (
<>
-
+
-
- Email
- Name
- Role
- Invited
- Expires
- Actions
+
+ Email
+ Name
+ Role
+ Invited
+ Expires
+ Actions
{invitations.map((invitation) => (
-
-
+
+
{invitation.email}
-
+
{invitation.first_name && invitation.last_name
? `${invitation.first_name} ${invitation.last_name}`
: '-'}
{getRoleBadge(invitation.role)}
-
+
{new Date(invitation.invited_at).toLocaleDateString()}
-
-
+
+
{formatDate(invitation.expires_at)}
@@ -176,7 +176,7 @@ const PendingInvitationsTable = () => {
size="sm"
onClick={() => handleResend(invitation.id)}
disabled={resending === invitation.id}
- className="rounded-xl border-[#81B29A] text-[#81B29A] hover:bg-[#81B29A] hover:text-white"
+ className="rounded-xl border-success text-success hover:bg-success hover:text-white"
>
{resending === invitation.id ? (
'Resending...'
@@ -208,10 +208,10 @@ const PendingInvitationsTable = () => {
setRevokeDialog({ open, invitation: null })}>
-
+
Revoke Invitation
-
+
Are you sure you want to revoke the invitation for{' '}
{revokeDialog.invitation?.email}?
This action cannot be undone.
diff --git a/src/components/PlanDialog.js b/src/components/PlanDialog.js
index 72c06a0..e840185 100644
--- a/src/components/PlanDialog.js
+++ b/src/components/PlanDialog.js
@@ -118,7 +118,7 @@ const PlanDialog = ({ open, onOpenChange, plan, onSuccess }) => {
// Validate custom cycle dates if enabled
if (formData.custom_cycle_enabled) {
if (!formData.custom_cycle_start_month || !formData.custom_cycle_start_day ||
- !formData.custom_cycle_end_month || !formData.custom_cycle_end_day) {
+ !formData.custom_cycle_end_month || !formData.custom_cycle_end_day) {
toast.error('All custom cycle dates must be provided');
setLoading(false);
return;
@@ -161,10 +161,10 @@ const PlanDialog = ({ open, onOpenChange, plan, onSuccess }) => {