FIX: If language is the selected one then disable row

This commit is contained in:
Marcos Rodriguez Velez 2024-04-20 22:27:34 -04:00
parent e95cc870a7
commit bc5e0d9d27
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7

View File

@ -45,7 +45,14 @@ const Language = () => {
};
const renderItem = ({ item }: { item: TLanguage }) => {
return <ListItem title={item.label} checkmark={language === item.value} onPress={() => onLanguageSelect(item)} />;
return (
<ListItem
disabled={language == item.value}
title={item.label}
checkmark={language === item.value}
onPress={() => onLanguageSelect(item)}
/>
);
};
return (