Update tab_bar_button.ts
This commit is contained in:
parent
4029481fd0
commit
9ffe220def
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { ColorScheme, StyleSets } from "../common"
|
import { Theme, StyleSets } from "../common"
|
||||||
import { interactive } from "../element"
|
import { interactive } from "../element"
|
||||||
import { InteractiveState } from "../element/interactive"
|
import { InteractiveState } from "../element/interactive"
|
||||||
import { background, foreground } from "../style_tree/components"
|
import { background, foreground } from "../style_tree/components"
|
||||||
|
@ -12,7 +12,7 @@ type TabBarButtonProps = TabBarButtonOptions & {
|
||||||
state?: Partial<Record<InteractiveState, Partial<TabBarButtonOptions>>>
|
state?: Partial<Record<InteractiveState, Partial<TabBarButtonOptions>>>
|
||||||
}
|
}
|
||||||
|
|
||||||
export function tab_bar_button(theme: ColorScheme, { icon, color = "base" }: TabBarButtonProps) {
|
export function tab_bar_button(theme: Theme, { icon, color = "base" }: TabBarButtonProps) {
|
||||||
const button_spacing = 8
|
const button_spacing = 8
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue