Skip to content

Commit 79186f1

Browse files
fix
1 parent fa0c171 commit 79186f1

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

lib/ui/select.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,23 @@ const Select = ({
6666
}} />
6767
<Img item={items[id]} />
6868
{items[id][0]}
69+
{switch_ ? <div className='du r5px ob'>{
70+
items.map((item, iid) => (
71+
<button
72+
key={iid}
73+
title={titles[2] ? titles[2] : ''}
74+
type='button'
75+
className='bb cw sb scp cp'
76+
onClick={() => {
77+
setID(iid);
78+
}}
79+
>
80+
<Img item={item} />
81+
{item[0]}
82+
</button>
83+
))
84+
}</div> : <></>}
6985
</button>
70-
{switch_ ? <div className='du r5px ob'>{
71-
items.map((item, iid) => (
72-
<button
73-
key={iid}
74-
title={titles[2] ? titles[2] : ''}
75-
type='button'
76-
className='bb cw sb scp cp'
77-
onClick={() => {
78-
setID(iid);
79-
}}
80-
>
81-
<Img item={item} />
82-
{item[0]}
83-
</button>
84-
))
85-
}</div> : <></>}
8686
</>
8787
)
8888
}

0 commit comments

Comments
 (0)