Environment dropdowns behaving now we’ve switched to “development” and “live”

This commit is contained in:
Matt Aitken
2022-12-19 13:42:28 +00:00
parent 0c03fa8513
commit d1d8439dbf
2 changed files with 2 additions and 2 deletions
@@ -33,5 +33,5 @@ export const { commitSession, getSession } = createCookieSessionStorage({
export async function getRuntimeEnvironmentFromSession(
session: Session
): Promise<string> {
return session.get("environment") ?? "dev";
return session.get("environment") ?? "development";
}
@@ -145,7 +145,7 @@ export function EnvironmentMenu() {
function EnvironmentIcon({ slug }: { slug: string }) {
let color = "bg-emerald-500";
if (slug === "prod") {
if (slug === "live") {
color = "bg-orange-500";
}
return (