From df81e729f42f196f8319ae6f16f6484ebf5f4bd2 Mon Sep 17 00:00:00 2001 From: Michael Marszalek Date: Tue, 4 Mar 2025 15:17:15 +0100 Subject: [PATCH] remove debug --- apps/theme/components/TokenModal/TokenModal.tsx | 7 +------ apps/theme/utils/is-production.ts | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/apps/theme/components/TokenModal/TokenModal.tsx b/apps/theme/components/TokenModal/TokenModal.tsx index 1bf36cddac..d285564fb2 100644 --- a/apps/theme/components/TokenModal/TokenModal.tsx +++ b/apps/theme/components/TokenModal/TokenModal.tsx @@ -15,7 +15,7 @@ import { useRef, useState } from 'react'; import type { Color } from '@digdir/designsystemet/color'; import { type ColorTheme, useThemeStore } from '../../store'; -import { designsystemetEnv, isProduction } from '../../utils/is-production'; +import { isProduction } from '../../utils/is-production'; import classes from './TokenModal.module.css'; const colorCliOptions = cliOptions.theme.colors; @@ -42,11 +42,6 @@ export const TokenModal = () => { const packageWithTag = `@digdir/designsystemet${isProduction() ? '' : '@next'}`; - console.log({ - designsystemetEnv: designsystemetEnv(), - isProduction: isProduction(), - }); - const buildSnippet = `npx ${packageWithTag} tokens build`; const cliSnippet = [ diff --git a/apps/theme/utils/is-production.ts b/apps/theme/utils/is-production.ts index 18bb5d90e1..a2c1868bc9 100644 --- a/apps/theme/utils/is-production.ts +++ b/apps/theme/utils/is-production.ts @@ -1,7 +1,3 @@ export function isProduction() { return process.env.NEXT_PUBLIC_DESIGNSYSTEMET_ENV === 'production'; } - -export function designsystemetEnv() { - return process.env.NEXT_PUBLIC_DESIGNSYSTEMET_ENV; -}