Skip to content

Commit

Permalink
Hide available components if hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Schneider-Swales committed Dec 19, 2023
1 parent 7d53128 commit 0af722b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ function handleSelectHosted() {
document.getElementById("component-container").style = "display: none;"
document.getElementById("styling-options").style = "display: none;"
document.getElementById("hosted-theme").style = "display: block;"
document.getElementById("available-components").style = "display: none;"
}

// Show styling options and only cards component
Expand All @@ -155,6 +156,7 @@ function handleSelectEmbedded() {
document.getElementById("component-container").style = "display: block;"
document.getElementById("styling-options").style = "display: block;"
document.getElementById("hosted-theme").style = "display: none;"
document.getElementById("available-components").style = "display: block;"
}

// Secret function for toggling dark theme so we can check styling options support
Expand Down

0 comments on commit 0af722b

Please sign in to comment.