Skip to content

Commit 8d5372b

Browse files
committed
Hide the message if not on cloud
1 parent f27fc08 commit 8d5372b

File tree

1 file changed

+27
-23
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.regions

1 file changed

+27
-23
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.regions/route.tsx

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import {
4747
TableRow,
4848
} from "~/components/primitives/Table";
4949
import { TextLink } from "~/components/primitives/TextLink";
50+
import { useFeatures } from "~/hooks/useFeatures";
5051
import { useOrganization } from "~/hooks/useOrganizations";
5152
import { useHasAdminAccess } from "~/hooks/useUser";
5253
import { redirectWithErrorMessage, redirectWithSuccessMessage } from "~/models/message.server";
@@ -132,6 +133,7 @@ export default function Page() {
132133
const { regions, isPaying } = useTypedLoaderData<typeof loader>();
133134
const organization = useOrganization();
134135
const isAdmin = useHasAdminAccess();
136+
const { isManagedCloud } = useFeatures();
135137

136138
return (
137139
<PageContainer>
@@ -295,29 +297,31 @@ export default function Page() {
295297
</TableRow>
296298
</TableBody>
297299
</Table>
298-
<InfoPanel
299-
icon={InformationCircleIcon}
300-
iconClassName="size-4"
301-
variant="minimal"
302-
panelClassName="max-w-full gap-1"
303-
>
304-
<Paragraph variant="extra-small" className="flex items-baseline gap-x-0.5">
305-
Trigger.dev is fully GDPR compliant. Learn more in our{" "}
306-
<TextLink to="https://security.trigger.dev">security portal</TextLink> or{" "}
307-
<Feedback
308-
button={
309-
<Paragraph
310-
variant="extra-small"
311-
className="cursor-pointer text-indigo-500 transition hover:text-indigo-400"
312-
>
313-
get in touch
314-
</Paragraph>
315-
}
316-
defaultValue="help"
317-
/>
318-
.
319-
</Paragraph>
320-
</InfoPanel>
300+
{isManagedCloud && (
301+
<InfoPanel
302+
icon={InformationCircleIcon}
303+
iconClassName="size-4"
304+
variant="minimal"
305+
panelClassName="max-w-full gap-1"
306+
>
307+
<Paragraph variant="extra-small" className="flex items-baseline gap-x-0.5">
308+
Trigger.dev is fully GDPR compliant. Learn more in our{" "}
309+
<TextLink to="https://security.trigger.dev">security portal</TextLink> or{" "}
310+
<Feedback
311+
button={
312+
<Paragraph
313+
variant="extra-small"
314+
className="cursor-pointer text-indigo-500 transition hover:text-indigo-400"
315+
>
316+
get in touch
317+
</Paragraph>
318+
}
319+
defaultValue="help"
320+
/>
321+
.
322+
</Paragraph>
323+
</InfoPanel>
324+
)}
321325
</div>
322326
</>
323327
)}

0 commit comments

Comments
 (0)