From 80b311dab1f03d53d77d7b9ad5647f92ee355efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20H=C3=B8egh?= Date: Fri, 1 Dec 2023 15:22:53 +0100 Subject: [PATCH] chore(Switch): housekeeping of example/demos (#2953) --- .../docs/uilib/components/switch/Examples.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/switch/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/components/switch/Examples.tsx index 55c21ccefe7..aa9fbbf195a 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/components/switch/Examples.tsx +++ b/packages/dnb-design-system-portal/src/docs/uilib/components/switch/Examples.tsx @@ -7,18 +7,17 @@ import React from 'react' import ComponentBox from '../../../../shared/tags/ComponentBox' import { Switch, HelpButton } from '@dnb/eufemia/src' -const onChange = (state) => { - console.log('onChangeHandler', state) -} - export const SwitchExampleDefault = () => ( - - + + console.log(checked)} + /> ) export const SwitchExampleChecked = () => ( - + ( ) export const SwitchExampleErrorMessage = () => ( - + ) export const SwitchExampleSuffix = () => ( - +