Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz committed Mar 4, 2025
1 parent 8182af1 commit df81e72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
7 changes: 1 addition & 6 deletions apps/theme/components/TokenModal/TokenModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 = [
Expand Down
4 changes: 0 additions & 4 deletions apps/theme/utils/is-production.ts
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit df81e72

Please sign in to comment.