diff --git a/components/dashboard/src/Menu.tsx b/components/dashboard/src/Menu.tsx index a8c73a0a4d28c8..2d7207fb3529ab 100644 --- a/components/dashboard/src/Menu.tsx +++ b/components/dashboard/src/Menu.tsx @@ -281,7 +281,7 @@ export default function Menu() { )}
- + {licenseLevel} {paid} @@ -70,7 +70,7 @@ export default function License() {
- +
{statusMessage}

Registered Users

diff --git a/components/dashboard/src/admin/TeamDetail.tsx b/components/dashboard/src/admin/TeamDetail.tsx index e206a64d1cb323..2104bc5faddbbc 100644 --- a/components/dashboard/src/admin/TeamDetail.tsx +++ b/components/dashboard/src/admin/TeamDetail.tsx @@ -125,7 +125,7 @@ export default function TeamDetail(props: { team: Team }) { void; children?: React.Re return (
diff --git a/components/dashboard/src/components/DropDown.tsx b/components/dashboard/src/components/DropDown.tsx index 5fc668cf099ee3..7cb488d83a9458 100644 --- a/components/dashboard/src/components/DropDown.tsx +++ b/components/dashboard/src/components/DropDown.tsx @@ -10,7 +10,8 @@ import ContextMenu from "./ContextMenu"; export interface DropDownProps { prefix?: string; - contextMenuWidth?: string; + customClasses?: string; + renderAsLink?: boolean; activeEntry?: string; entries: DropDownEntry[]; } @@ -35,14 +36,20 @@ function DropDown(props: DropDownProps) { }, }; }); - const font = - "text-gray-400 dark:text-gray-500 text-sm leading-1 group hover:text-gray-600 dark:hover:text-gray-400 transition ease-in-out"; + const defaultFont = "text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400 "; + const asLinkFont = "text-blue-500 dark:text-blue-400 hover:text-blue-600 dark:hover:text-blue-500"; + const asLinkArrowBorder = + "border-blue-500 dark:border-blue-400 group-hover:border-blue-600 dark:group-hover:border-blue-500"; return ( - - + + {props.prefix} {current} - + ); diff --git a/components/dashboard/src/components/PendingChangesDropdown.tsx b/components/dashboard/src/components/PendingChangesDropdown.tsx index c95e166ef09f4d..249871ec85d452 100644 --- a/components/dashboard/src/components/PendingChangesDropdown.tsx +++ b/components/dashboard/src/components/PendingChangesDropdown.tsx @@ -41,7 +41,7 @@ export default function PendingChangesDropdown(props: { workspaceInstance?: Work return
No Changes
; } return ( - +

{totalChanges} Change{totalChanges === 1 ? "" : "s"} diff --git a/components/dashboard/src/components/PillLabel.tsx b/components/dashboard/src/components/PillLabel.tsx index cbf456927ea807..a12368ab8d1265 100644 --- a/components/dashboard/src/components/PillLabel.tsx +++ b/components/dashboard/src/components/PillLabel.tsx @@ -17,7 +17,7 @@ export default function PillLabel(props: { children?: React.ReactNode; type?: "info" | "warn"; className?: string }) { const infoStyle = "bg-blue-50 text-blue-500 dark:bg-blue-500 dark:text-blue-100"; const warnStyle = "bg-orange-100 text-orange-700 dark:bg-orange-600 dark:text-orange-100"; - const style = `ml-2 px-3 py-1 text-sm uppercase rounded-xl ${props.type === "warn" ? warnStyle : infoStyle} ${ + const style = `px-3 py-1 text-sm uppercase rounded-xl ${props.type === "warn" ? warnStyle : infoStyle} ${ props.className }`; return {props.children}; diff --git a/components/dashboard/src/components/SolidCard.tsx b/components/dashboard/src/components/SolidCard.tsx index 85b2b0d2548612..98b045b5e427ef 100644 --- a/components/dashboard/src/components/SolidCard.tsx +++ b/components/dashboard/src/components/SolidCard.tsx @@ -8,7 +8,7 @@ function SolidCard(p: { className?: string; onClick?: () => void; children?: Rea return (

- +
{!selectedAccount && user && user.name && user.avatarUrl && ( <> diff --git a/components/dashboard/src/projects/Prebuilds.tsx b/components/dashboard/src/projects/Prebuilds.tsx index 1c5ce557946577..441a654e806512 100644 --- a/components/dashboard/src/projects/Prebuilds.tsx +++ b/components/dashboard/src/projects/Prebuilds.tsx @@ -180,7 +180,7 @@ export default function (props: { project?: Project; isAdminDashboard?: boolean
- +
{!isLoadingPrebuilds && prebuilds.length === 0 && !props.isAdminDashboard && (
@@ -219,10 +226,14 @@ export default function TeamBilling() { )} {!isLoading && teamPlan && ( <> - +
-
{teamPlan.name}
-
Unlimited hours
+
+ {teamPlan.name} +
+
+ Unlimited hours +
Includes:
{(featuresByPlanType[teamPlan.type] || []).map((f) => ( @@ -232,25 +243,31 @@ export default function TeamBilling() { ))}
-
+
{!teamSubscription ? ( - +
) : ( - +
-
Members
-
{members.length}
-
Next invoice on
-
+
+ Members +
+
+ {members.length} +
+
+ Next invoice on +
+
{guessNextInvoiceDate(teamSubscription.startDate).toDateString()}
-
+