Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Update billing page components (#2663)

Luke Vella1969feabcbf8
diff --git a/apps/web/src/app/[locale]/(space)/settings/billing/components/billing-plan.tsx b/apps/web/src/app/[locale]/(space)/settings/billing/components/billing-plan.tsx
index 5a407f5ba..54fb6c2ab 100644
--- a/apps/web/src/app/[locale]/(space)/settings/billing/components/billing-plan.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/billing/components/billing-plan.tsx
@@ -1,7 +1,7 @@
"use client";
+import { Card } from "@rallly/ui/card";
import type React from "react";
-import { StackedList, StackedListItem } from "@/components/stacked-list";
import {
SpaceTierIcon,
SpaceTierLabel,
@@ -19,23 +19,21 @@ export function BillingPlan({
seats: number;
}) {
return (
- <StackedList>
- <StackedListItem>
- <SpaceTierIcon tier={tier} />
- <div className="flex-1">
- <div className="font-semibold text-sm">
- <SpaceTierLabel tier={tier} />
- </div>
- <p className="text-muted-foreground text-sm">{status}</p>
+ <Card className="flex items-center gap-x-6 p-4">
+ <SpaceTierIcon tier={tier} />
+ <div className="flex-1">
+ <div className="font-semibold text-sm">
+ <SpaceTierLabel tier={tier} />
</div>
- <div className="text-muted-foreground text-sm">
- <Trans
- i18nKey="seatCount"
- defaults="{count, plural, {one, # seat} {other, # seats}}"
- values={{ count: seats }}
- />
- </div>
- </StackedListItem>
- </StackedList>
+ <p className="text-muted-foreground text-sm">{status}</p>
+ </div>
+ <div className="text-muted-foreground text-sm">
+ <Trans
+ i18nKey="seatCount"
+ defaults="{count, plural, {one, # seat} {other, # seats}}"
+ values={{ count: seats }}
+ />
+ </div>
+ </Card>
);
}
diff --git a/apps/web/src/features/space/components/space-tier.tsx b/apps/web/src/features/space/components/space-tier.tsx
index 73b950e95..34abd5097 100644
--- a/apps/web/src/features/space/components/space-tier.tsx
+++ b/apps/web/src/features/space/components/space-tier.tsx
@@ -7,9 +7,9 @@ import type { SpaceTier } from "@/features/space/schema";
export const SpaceTierLabel = ({ tier }: { tier: SpaceTier }) => {
switch (tier) {
case "hobby":
- return <span className="text-muted-foreground">{PLAN_NAMES.HOBBY}</span>;
+ return <span className="text-foreground">{PLAN_NAMES.HOBBY}</span>;
case "pro":
- return <span className="text-muted-foreground">{PLAN_NAMES.PRO}</span>;
+ return <span className="text-foreground">{PLAN_NAMES.PRO}</span>;
}
};
@@ -23,8 +23,8 @@ export const SpaceTierIcon = ({ tier }: { tier: SpaceTier }) => {
);
case "pro":
return (
- <div className="inline-flex size-10 items-center justify-center rounded-md border border-indigo-600/10 bg-indigo-600/10 text-xs">
- <SparklesIcon className="size-5 text-indigo-600" />
+ <div className="inline-flex size-10 items-center justify-center rounded-md border border-indigo-600/10 bg-indigo-600/10 text-xs dark:border-indigo-400/10 dark:bg-indigo-400/10">
+ <SparklesIcon className="size-5 text-indigo-600 dark:text-indigo-400" />
</div>
);
}