Pass missing settings to SetItem from SetList

This commit is contained in:
Brandon Presley 2022-11-01 16:54:14 +13:00
parent 31f1528c35
commit af9dcd0b13
1 changed files with 7 additions and 2 deletions

View File

@ -51,9 +51,14 @@ export default function SetList() {
const renderItem = useCallback(
({item}: {item: GymSet}) => (
<SetItem item={item} key={item.id} onRemove={() => refresh(term)} />
<SetItem
settings={settings}
item={item}
key={item.id}
onRemove={() => refresh(term)}
/>
),
[refresh, term],
[refresh, term, settings],
)
const next = useCallback(async () => {