diff --git a/apps/web/components/shared/EnvironmentNotice.tsx b/apps/web/components/shared/EnvironmentNotice.tsx index b1ac546463..62ba694d67 100644 --- a/apps/web/components/shared/EnvironmentNotice.tsx +++ b/apps/web/components/shared/EnvironmentNotice.tsx @@ -31,17 +31,21 @@ export default function EnvironmentNotice({ if (pageType === "apiSettings") { return (
- {environment.type === "production" && ( -
- -

- You're currently in the production environment, so you can only create production API keys. - changeEnvironment("development")} className="ml-1 cursor-pointer underline"> - Switch to Development now. - -

-
- )} +
+ +

+ {environment.type === "production" + ? "You're currently in the production environment, so you can only create production API keys. " + : "You're currently in the development environment, so you can only create development API keys. "} + + changeEnvironment(environment.type === "production" ? "development" : "production") + } + className="ml-1 cursor-pointer underline"> + Switch to {environment.type === "production" ? "Development" : "Production"} now. + +

+
); }