diff --git a/.vscode/settings.json b/.vscode/settings.json index 4bb6b87..dd658c0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,6 @@ { "eslint.validate": [ "javascript" ], "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" } } 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`