From c0b11b8350b678efa55561e416d89c414627aece Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Fri, 16 Feb 2024 22:15:33 -0800 Subject: [PATCH] improve the styling of the project upgrade banner --- .../UpgradeProjectAlert.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/v2/UpgradeProjectAlert/UpgradeProjectAlert.tsx b/frontend/src/components/v2/UpgradeProjectAlert/UpgradeProjectAlert.tsx index 894798a2e..cf7426cce 100644 --- a/frontend/src/components/v2/UpgradeProjectAlert/UpgradeProjectAlert.tsx +++ b/frontend/src/components/v2/UpgradeProjectAlert/UpgradeProjectAlert.tsx @@ -1,5 +1,7 @@ import { useCallback, useState } from "react"; import { useRouter } from "next/router"; +import { faWarning } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider"; import { useProjectPermission } from "@app/context"; @@ -7,7 +9,6 @@ import { useGetUpgradeProjectStatus, useUpgradeProject } from "@app/hooks/api"; import { Workspace } from "@app/hooks/api/types"; import { ProjectVersion } from "@app/hooks/api/workspace/types"; -import { Alert } from "../Alert"; import { Button } from "../Button"; export type UpgradeProjectAlertProps = { @@ -85,18 +86,18 @@ export const UpgradeProjectAlert = ({ project }: UpgradeProjectAlertProps): JSX. if (membership.role !== "admin") return null; return ( -
- -
- Upgrade your project version to continue receiving the latest improvements and patches. - {currentStatus &&

Status: {currentStatus}

} -
-
+
+ +
+ Upgrade your project + Upgrade your project version to continue receiving the latest improvements and patches. + {currentStatus &&

Status: {currentStatus}

} +
+
-
); };