Skip to content

Commit e161426

Browse files
committed
always dipslay close buttons from settings
1 parent 0e4435e commit e161426

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/react/OptionsItems.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,16 @@ interface Props {
189189
}
190190

191191
export default ({ items, title, backButtonAction }: Props) => {
192-
const { currentTouch } = useSnapshot(miscUiState)
193192

194193
return <Screen
195194
title={title}
196195
>
197196
<div className='screen-items'>
198-
{currentTouch && (
199-
<div style={{ position: 'fixed', marginLeft: '-30px', display: 'flex', flexDirection: 'column', gap: 1, }}>
200-
<Button icon={pixelartIcons['close']} onClick={hideAllModals} style={{ color: '#ff5d5d', }} />
201-
<Button icon={pixelartIcons['chevron-left']} onClick={backButtonAction} style={{ color: 'yellow', }} />
202-
</div>
203-
)}
197+
<div style={{ position: 'fixed', marginLeft: '-30px', display: 'flex', flexDirection: 'column', gap: 1, }}>
198+
<Button icon={pixelartIcons['close']} onClick={hideAllModals} style={{ color: '#ff5d5d', }} />
199+
<Button icon={pixelartIcons['chevron-left']} onClick={backButtonAction} style={{ color: 'yellow', }} />
200+
</div>
201+
204202
{items.map((element, i) => {
205203
// make sure its unique!
206204
return <RenderOption key={element.id ?? `${title}-${i}`} item={element} />

0 commit comments

Comments
 (0)