From 6da66d5db42d5630d4d5c50b7f6f5725bfa97a6a Mon Sep 17 00:00:00 2001 From: Carlo Barone Date: Wed, 31 Jan 2024 16:41:32 +0100 Subject: [PATCH] fix: vscode settings not to be included --- src/cosmoz-tab-card.js | 20 ++++++++------------ stories/cosmoz-tab-card.stories.js | 2 +- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/cosmoz-tab-card.js b/src/cosmoz-tab-card.js index a177ce0..54a6140 100644 --- a/src/cosmoz-tab-card.js +++ b/src/cosmoz-tab-card.js @@ -22,8 +22,8 @@ Custom property | Description | Default `--cosmoz-tab-card-content-padding` | Card content padding | `initial` */ -const CosmozTabCard = ({ heading, collapsable }) => { - const [collapsed, setCollapsed] = useState(false); +const CosmozTabCard = ({ heading, collapsable, collapsed }) => { + const [isCollapsed, setCollapsed] = useState(collapsed); return html`