mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
Lint
This commit is contained in:
parent
ec35d56b11
commit
4b922d07a4
@ -863,7 +863,7 @@ export class AppStorage {
|
||||
if (doNotTrackValue) {
|
||||
await DefaultPreference.set(AppStorage.DO_NOT_TRACK, '1');
|
||||
AsyncStorage.removeItem(AppStorage.DO_NOT_TRACK);
|
||||
}
|
||||
}
|
||||
} catch (_) {}
|
||||
return false;
|
||||
};
|
||||
|
@ -55,7 +55,7 @@ export const Button = forwardRef<TouchableOpacity, ButtonProps>((props, ref) =>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
};
|
||||
});
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
button: {
|
||||
|
@ -38,7 +38,7 @@ const LNDCreateInvoice = () => {
|
||||
const { wallets, saveToDisk, setSelectedWalletID } = useContext(BlueStorageContext);
|
||||
const { walletID, uri } = useRoute().params;
|
||||
const wallet = useRef(wallets.find(item => item.getID() === walletID) || wallets.find(item => item.chain === Chain.OFFCHAIN));
|
||||
const createInvoiceRef = useRef()
|
||||
const createInvoiceRef = useRef();
|
||||
const { name } = useRoute();
|
||||
const { colors } = useTheme();
|
||||
const { navigate, getParent, goBack, pop, setParams } = useNavigation();
|
||||
@ -318,7 +318,11 @@ const LNDCreateInvoice = () => {
|
||||
const renderCreateButton = () => {
|
||||
return (
|
||||
<View style={styles.createButton}>
|
||||
{isLoading ? <ActivityIndicator /> : <Button disabled={!(amount > 0)} ref={createInvoiceRef} onPress={createInvoice} title={loc.send.details_create} />}
|
||||
{isLoading ? (
|
||||
<ActivityIndicator />
|
||||
) : (
|
||||
<Button disabled={!(amount > 0)} ref={createInvoiceRef} onPress={createInvoice} title={loc.send.details_create} />
|
||||
)}
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user