mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +01:00
FIX: Lint
This commit is contained in:
parent
1e6fa9097f
commit
7c79ecc413
3 changed files with 11 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
import React, { forwardRef, useImperativeHandle, useRef, ReactElement, ComponentType } from 'react';
|
||||
import { SheetSize, TrueSheet, TrueSheetProps } from '@lodev09/react-native-true-sheet';
|
||||
import { SheetSize, SizeInfo, TrueSheet, TrueSheetProps } from '@lodev09/react-native-true-sheet';
|
||||
import { StyleSheet, View } from 'react-native';
|
||||
|
||||
interface BottomModalProps extends TrueSheetProps {
|
||||
|
@ -10,6 +10,8 @@ interface BottomModalProps extends TrueSheetProps {
|
|||
sizes?: SheetSize[] | undefined;
|
||||
footer?: ReactElement | ComponentType<any>;
|
||||
footerDefaultMargins?: boolean | number;
|
||||
onPresent?: () => void;
|
||||
onSizeChange?: (size: SizeInfo) => void;
|
||||
}
|
||||
|
||||
export interface BottomModalHandle {
|
||||
|
@ -42,7 +44,11 @@ const BottomModal = forwardRef<BottomModalHandle, BottomModalProps>(
|
|||
}));
|
||||
|
||||
const stlyes = StyleSheet.create({
|
||||
footerContainer: { padding: typeof footerDefaultMargins === 'number' ? footerDefaultMargins : 40, alignItems: 'center' },
|
||||
footerContainer: {
|
||||
padding: typeof footerDefaultMargins === 'number' ? footerDefaultMargins : 40,
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
},
|
||||
});
|
||||
|
||||
let FooterComponent: ReactElement | ComponentType<any> | undefined;
|
||||
|
@ -60,13 +66,13 @@ const BottomModal = forwardRef<BottomModalHandle, BottomModalProps>(
|
|||
ref={trueSheetRef}
|
||||
cornerRadius={24}
|
||||
sizes={sizes}
|
||||
blurTint="regular"
|
||||
onDismiss={onClose}
|
||||
onPresent={onPresent}
|
||||
onSizeChange={onSizeChange}
|
||||
grabber={isGrabberVisible}
|
||||
FooterComponent={FooterComponent}
|
||||
{...props}
|
||||
blurTint="regular"
|
||||
>
|
||||
{children}
|
||||
</TrueSheet>
|
||||
|
|
|
@ -346,7 +346,7 @@ const ReceiveDetails = () => {
|
|||
onClose={dismissCustomAmountModal}
|
||||
backgroundColor={colors.modal}
|
||||
contentContainerStyle={styles.modalContent}
|
||||
footerDefaultMarginsEnabled
|
||||
footerDefaultMargins
|
||||
footer={
|
||||
<Button
|
||||
testID="CustomAmountSaveButton"
|
||||
|
|
|
@ -34,9 +34,6 @@ const WalletsAddMultisig = () => {
|
|||
textdesc: {
|
||||
color: colors.alternativeTextColor,
|
||||
},
|
||||
modalContentShort: {
|
||||
backgroundColor: colors.elevated,
|
||||
},
|
||||
textSubtitle: {
|
||||
color: colors.alternativeTextColor,
|
||||
},
|
||||
|
@ -107,7 +104,7 @@ const WalletsAddMultisig = () => {
|
|||
sizes={['auto', 'large']}
|
||||
ref={bottomModalRef}
|
||||
contentContainerStyle={styles.modalContentShort}
|
||||
backgroundColor={stylesHook.modalContentShort}
|
||||
backgroundColor={colors.elevated}
|
||||
>
|
||||
<Text style={[styles.textHeader, stylesHook.textHeader]}>{loc.multisig.quorum_header}</Text>
|
||||
<Text style={[styles.textSubtitle, stylesHook.textSubtitle]}>{loc.multisig.required_keys_out_of_total}</Text>
|
||||
|
|
Loading…
Add table
Reference in a new issue