Commit c472348 1 parent bda21bf commit c472348 Copy full SHA for c472348
File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { Select } from '@kobalte/core'
2
2
import { FaSolidCheck } from 'solid-icons/fa'
3
- import { HiSolidSelector } from 'solid-icons/hi '
3
+ import { TbSelector } from 'solid-icons/tb '
4
4
import { type Component , createSignal } from 'solid-js'
5
5
import './styles.css'
6
6
@@ -25,11 +25,10 @@ const Selection: Component<SelectionProps> = (props) => {
25
25
< Select . Root
26
26
name = { props . name }
27
27
value = { value ( ) }
28
- onValueChange = { handleChange }
28
+ onChange = { handleChange }
29
29
defaultValue = { props . defaultValue }
30
30
options = { props . options }
31
31
placeholder = { props . placeholder }
32
- valueComponent = { ( props ) => props . item . rawValue }
33
32
itemComponent = { ( props ) => (
34
33
< Select . Item item = { props . item } class = "select__item" >
35
34
< Select . ItemLabel > { props . item . rawValue } </ Select . ItemLabel >
@@ -39,9 +38,11 @@ const Selection: Component<SelectionProps> = (props) => {
39
38
</ Select . Item >
40
39
) } >
41
40
< Select . Trigger class = "select__trigger" aria-label = "ESP_Boards" >
42
- < Select . Value class = "select__value" />
41
+ < Select . Value class = "select__value" >
42
+ { ( state ) => state . selectedOption ( ) as Element }
43
+ </ Select . Value >
43
44
< Select . Icon class = "select__icon" >
44
- < HiSolidSelector />
45
+ < TbSelector />
45
46
</ Select . Icon >
46
47
</ Select . Trigger >
47
48
< Select . Description > { props . description } </ Select . Description >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ interface AppUIContext {
22
22
23
23
const AppUIContext = createContext < AppUIContext > ( )
24
24
export const AppUIProvider : Component < Context > = ( props ) => {
25
- const defaultState = {
25
+ const defaultState : UiStore = {
26
26
loader : { [ loaderType . MDNS_CONNECTING ] : false , [ loaderType . REST_CLIENT ] : false } ,
27
27
connecting : false ,
28
28
openModal : false ,
You can’t perform that action at this time.
0 commit comments