mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 14:26:25 +00:00
Merge pull request #4218 from dcs-soni/bug/banner-flicker
fix: redis banner appears only when it is not configured
This commit is contained in:
@@ -38,7 +38,8 @@ export const ProjectsPage = () => {
|
|||||||
"upgradePlan"
|
"upgradePlan"
|
||||||
] as const);
|
] as const);
|
||||||
|
|
||||||
const { data: serverDetails } = useFetchServerStatus();
|
const { data: serverDetails, isLoading } = useFetchServerStatus();
|
||||||
|
|
||||||
const { subscription } = useSubscription();
|
const { subscription } = useSubscription();
|
||||||
|
|
||||||
const isAddingProjectsAllowed = subscription?.workspaceLimit
|
const isAddingProjectsAllowed = subscription?.workspaceLimit
|
||||||
@@ -51,7 +52,8 @@ export const ProjectsPage = () => {
|
|||||||
<title>{t("common.head-title", { title: t("settings.members.title") })}</title>
|
<title>{t("common.head-title", { title: t("settings.members.title") })}</title>
|
||||||
<link rel="icon" href="/infisical.ico" />
|
<link rel="icon" href="/infisical.ico" />
|
||||||
</Helmet>
|
</Helmet>
|
||||||
{!serverDetails?.redisConfigured && (
|
|
||||||
|
{!isLoading && !serverDetails?.redisConfigured && (
|
||||||
<div className="mb-4 flex flex-col items-start justify-start text-3xl">
|
<div className="mb-4 flex flex-col items-start justify-start text-3xl">
|
||||||
<p className="mb-4 mr-4 font-semibold text-white">Announcements</p>
|
<p className="mb-4 mr-4 font-semibold text-white">Announcements</p>
|
||||||
<div className="flex w-full items-center rounded-md border border-blue-400/70 bg-blue-900/70 p-2 text-base text-mineshaft-100">
|
<div className="flex w-full items-center rounded-md border border-blue-400/70 bg-blue-900/70 p-2 text-base text-mineshaft-100">
|
||||||
|
|||||||
Reference in New Issue
Block a user