Merge merge request !24 (stack the Stats exercise selector value)

This commit is contained in:
Duarte Santos committed 2026-08-25 21:59:51 +02:00
commit b0b9e9350f
4 files changed
+22 -3

No files matched your search

+3 -2
View File
@@ -248,7 +248,7 @@ export function Row({ icon, iconTint, title, subtitle, value, accessory = 'none'
// theme entirely — on dark mode it flashes a white sheet — and can't show more
// than a bare label per option. This opens our own sheet with a checkmark on the
// current value, which is also how iOS itself handles a long option list.
export function SelectRow({ icon, iconTint, title, value, options, onChange, sheetTitle }) {
export function SelectRow({ icon, iconTint, title, value, options, onChange, sheetTitle, stackedValue = false }) {
const cur = options.find(o => o.value === value)
const open = () => {
const { openSheet } = require_ui()
@@ -270,7 +270,8 @@ export function SelectRow({ icon, iconTint, title, value, options, onChange, she
return h
}
return (
<Row icon={icon} iconTint={iconTint} title={title} value={cur ? cur.label : value} accessory="chevron" onClick={open} />
<Row icon={icon} iconTint={iconTint} title={title} value={cur ? cur.label : value} accessory="chevron" onClick={open}
className={stackedValue ? 'lrow-stack-value' : ''} />
)
}