mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
FIX: If language is the selected one then disable row
This commit is contained in:
parent
e95cc870a7
commit
bc5e0d9d27
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user