Don't require passing theme to toggleable_icon_button

This commit is contained in:
Nate Butler
2023-08-29 16:01:08 -04:00
parent 0a14e33dba
commit 33c9f14852
5 changed files with 7 additions and 11 deletions
+1 -4
View File
@@ -77,10 +77,7 @@ export function icon_button({ color, margin, layer, variant, size }: IconButtonO
})
}
export function toggleable_icon_button(
theme: Theme,
{ color, active_color, margin, variant, size, active_layer }: ToggleableIconButtonOptions
) {
export function toggleable_icon_button({ color, active_color, margin, variant, size, active_layer }: ToggleableIconButtonOptions) {
if (!color) color = "base"
return toggleable({