From 96c93673e3665d09b0e2baf38e6f1ae17ae75d91 Mon Sep 17 00:00:00 2001 From: Michael Marszalek Date: Tue, 27 Aug 2024 09:25:01 +0200 Subject: [PATCH] update snippet --- apps/theme/components/TokenModal/TokenModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/theme/components/TokenModal/TokenModal.tsx b/apps/theme/components/TokenModal/TokenModal.tsx index 5bc4e451c9..885bb30527 100644 --- a/apps/theme/components/TokenModal/TokenModal.tsx +++ b/apps/theme/components/TokenModal/TokenModal.tsx @@ -35,7 +35,7 @@ export const TokenModal = ({ const [toolTipText, setToolTipText] = useState('Kopier nettaddresse'); - const cliSnippet = `npx @digdir/designsystemet tokens create --accent "${accentColor}" --neutral "${neutralColor}" --brand1 "${brand1Color}" --brand2 "${brand2Color}" --brand3 "${brand3Color}"`; + const cliSnippet = `npx @digdir/designsystemet tokens create --write --accent "${accentColor}" --neutral "${neutralColor}" --brand1 "${brand1Color}" --brand2 "${brand2Color}" --brand3 "${brand3Color}"`; const onButtonClick = () => { setToolTipText('Kopiert!');