REF: enable eslint react-native/no-unused-styles rule and remove unused styles

This commit is contained in:
Ivan Vershigora 2022-01-28 15:16:47 +03:00
parent 261182b65a
commit c8bd4d3423
40 changed files with 27 additions and 796 deletions

View file

@ -18,6 +18,8 @@
"react/jsx-handler-names": "off", // activated by standard-react config "react/jsx-handler-names": "off", // activated by standard-react config
"react/display-name": "off", "react/display-name": "off",
"react-native/no-inline-styles": "error", "react-native/no-inline-styles": "error",
"react-native/no-unused-styles": "error",
"react-native/no-single-element-style-arrays": "error",
"prettier/prettier": [ "prettier/prettier": [
"warn", "warn",
{ {

19
App.js
View file

@ -386,25 +386,6 @@ const styles = StyleSheet.create({
root: { root: {
flex: 1, flex: 1,
}, },
space: {
marginHorizontal: 8,
},
modalContent: {
padding: 22,
justifyContent: 'center',
alignItems: 'center',
borderTopLeftRadius: 16,
borderTopRightRadius: 16,
borderColor: 'rgba(0, 0, 0, 0.1)',
minHeight: 200,
height: 200,
},
modelContentButtonLayout: {
flexDirection: 'row',
margin: 16,
justifyContent: 'space-between',
alignItems: 'flex-end',
},
}); });
export default App; export default App;

View file

@ -31,10 +31,6 @@ const styles = StyleSheet.create({
width: 64, width: 64,
height: 64, height: 64,
}, },
encrypted: {
width: 0.5,
height: 20,
},
}); });
const UnlockWith = () => { const UnlockWith = () => {

View file

@ -338,7 +338,7 @@ const styles = StyleSheet.create({
disabledButton: { disabledButton: {
opacity: 0.5, opacity: 0.5,
}, },
enabledButton: { enabledButon: {
opacity: 1, opacity: 1,
}, },
outdatedRateContainer: { outdatedRateContainer: {

View file

@ -61,9 +61,6 @@ const styles = StyleSheet.create({
nodeAlias: { nodeAlias: {
marginVertical: 16, marginVertical: 16,
}, },
pending: {
marginVertical: 8,
},
canSendBar: { canSendBar: {
height: 14, height: 14,
maxHeight: 14, maxHeight: 14,

View file

@ -16,37 +16,9 @@ const MultipleStepsListItem = props => {
checked = false, checked = false,
} = props; } = props;
const stylesHook = StyleSheet.create({ const stylesHook = StyleSheet.create({
root: {
flex: 1,
backgroundColor: colors.elevated,
},
textBtc: {
color: colors.buttonAlternativeTextColor,
},
textDestinationFirstFour: {
color: colors.buttonAlternativeTextColor,
},
textBtcUnitValue: {
color: colors.buttonAlternativeTextColor,
},
textDestination: {
color: colors.foregroundColor,
},
modalContentShort: {
backgroundColor: colors.elevated,
},
modalContent: {
backgroundColor: colors.elevated,
},
textFiat: {
color: colors.alternativeTextColor,
},
provideKeyButton: { provideKeyButton: {
backgroundColor: colors.buttonDisabledBackgroundColor, backgroundColor: colors.buttonDisabledBackgroundColor,
}, },
exportButton: {
backgroundColor: colors.buttonDisabledBackgroundColor,
},
provideKeyButtonText: { provideKeyButtonText: {
color: colors.buttonTextColor, color: colors.buttonTextColor,
}, },
@ -56,15 +28,9 @@ const MultipleStepsListItem = props => {
vaultKeyText: { vaultKeyText: {
color: colors.alternativeTextColor, color: colors.alternativeTextColor,
}, },
feeFiatText: {
color: colors.alternativeTextColor,
},
vaultKeyCircleSuccess: { vaultKeyCircleSuccess: {
backgroundColor: colors.msSuccessBG, backgroundColor: colors.msSuccessBG,
}, },
vaultKeyTextSigned: {
color: colors.msSuccessBG,
},
rowPartialLeftText: { rowPartialLeftText: {
color: colors.alternativeTextColor, color: colors.alternativeTextColor,
}, },
@ -258,15 +224,6 @@ const styles = StyleSheet.create({
alignContent: 'center', alignContent: 'center',
justifyContent: 'center', justifyContent: 'center',
}, },
grayButton: {
marginTop: 24,
marginLeft: 40,
height: 48,
borderRadius: 8,
justifyContent: 'center',
paddingHorizontal: 16,
marginBottom: 8,
},
activityIndicator: { activityIndicator: {
marginLeft: 40, marginLeft: 40,
}, },
@ -281,15 +238,6 @@ const styles = StyleSheet.create({
rowPartialLeftText: { rowPartialLeftText: {
textAlign: 'center', textAlign: 'center',
}, },
vaultKeyTextSignedWrapper: { justifyContent: 'center', alignItems: 'center', paddingLeft: 16 },
vaultKeyTextSigned: { fontSize: 18, fontWeight: 'bold' },
exportButton: {
height: 48,
borderRadius: 8,
flex: 1,
justifyContent: 'center',
paddingHorizontal: 16,
},
}); });
export default MultipleStepsListItem; export default MultipleStepsListItem;

View file

@ -24,7 +24,6 @@ import { BlueStorageContext } from '../blue_modules/storage-context';
import { isHandset, isTablet, isDesktop } from '../blue_modules/environment'; import { isHandset, isTablet, isDesktop } from '../blue_modules/environment';
const nStyles = StyleSheet.create({ const nStyles = StyleSheet.create({
root: {},
container: { container: {
borderRadius: 10, borderRadius: 10,
minHeight: Platform.OS === 'ios' ? 164 : 181, minHeight: Platform.OS === 'ios' ? 164 : 181,
@ -118,9 +117,6 @@ const iStyles = StyleSheet.create({
fontSize: 19, fontSize: 19,
writingDirection: I18nManager.isRTL ? 'rtl' : 'ltr', writingDirection: I18nManager.isRTL ? 'rtl' : 'ltr',
}, },
activity: {
marginTop: 40,
},
balance: { balance: {
backgroundColor: 'transparent', backgroundColor: 'transparent',
fontWeight: 'bold', fontWeight: 'bold',
@ -258,17 +254,16 @@ WalletCarouselItem.propTypes = {
}; };
const cStyles = StyleSheet.create({ const cStyles = StyleSheet.create({
loading: {
position: 'absolute',
alignItems: 'center',
},
content: { content: {
paddingTop: 16, paddingTop: 16,
}, },
contentLargeScreen: { contentLargeScreen: {
paddingHorizontal: 16, paddingHorizontal: 16,
}, },
separatorStyle: { width: 16, height: 20 }, separatorStyle: {
width: 16,
height: 20,
},
}); });
const WalletsCarousel = forwardRef((props, ref) => { const WalletsCarousel = forwardRef((props, ref) => {

View file

@ -31,19 +31,11 @@ type RNGHFlatListProps<T> = Animated.AnimateProps<
} }
>; >;
const AnimatedFlatList = (Animated.createAnimatedComponent(FlatList) as unknown) as <T>(props: RNGHFlatListProps<T>) => React.ReactElement; const AnimatedFlatList = Animated.createAnimatedComponent(FlatList) as unknown as <T>(props: RNGHFlatListProps<T>) => React.ReactElement;
function DraggableFlatListInner<T>(props: DraggableFlatListProps<T>) { function DraggableFlatListInner<T>(props: DraggableFlatListProps<T>) {
const { const { cellDataRef, containerRef, flatListRef, isTouchActiveRef, keyToIndexRef, panGestureHandlerRef, propsRef, scrollOffsetRef } =
cellDataRef, useRefs<T>();
containerRef,
flatListRef,
isTouchActiveRef,
keyToIndexRef,
panGestureHandlerRef,
propsRef,
scrollOffsetRef,
} = useRefs<T>();
const { const {
activationDistance, activationDistance,
activeCellOffset, activeCellOffset,

View file

@ -229,9 +229,6 @@ const styles = StyleSheet.create({
justifyContent: 'space-between', justifyContent: 'space-between',
minHeight: 44, minHeight: 44,
}, },
safeBack: {
marginHorizontal: 8,
},
safeURL: { safeURL: {
flex: 1, flex: 1,
marginHorizontal: 8, marginHorizontal: 8,
@ -281,6 +278,7 @@ const styles = StyleSheet.create({
colorRed: { colorRed: {
color: 'red', color: 'red',
}, },
// eslint-disable-next-line react-native/no-unused-styles
colorGray: { colorGray: {
color: 'gray', color: 'gray',
}, },

View file

@ -47,14 +47,10 @@ const LdkInfo = () => {
// Modals // Modals
const [selectedChannelIndex, setSelectedChannelIndex] = useState<any>(); const [selectedChannelIndex, setSelectedChannelIndex] = useState<any>();
//
const stylesHook = StyleSheet.create({ const stylesHook = StyleSheet.create({
root: { root: {
backgroundColor: colors.background, backgroundColor: colors.background,
}, },
valueText: {
color: colors.alternativeTextColor2,
},
listHeaderText: { listHeaderText: {
color: colors.foregroundColor, color: colors.foregroundColor,
backgroundColor: colors.background, backgroundColor: colors.background,
@ -62,27 +58,9 @@ const LdkInfo = () => {
listHeaderBack: { listHeaderBack: {
backgroundColor: colors.background, backgroundColor: colors.background,
}, },
valueRoot: {
backgroundColor: colors.background,
},
textHeader: {
color: colors.outputValue,
},
valueSats: {
color: colors.alternativeTextColor2,
},
paidMark: {
backgroundColor: colors.success,
},
detailsText: { detailsText: {
color: colors.alternativeTextColor, color: colors.alternativeTextColor,
}, },
expired: {
backgroundColor: colors.success,
},
additionalInfo: {
backgroundColor: colors.brandingColor,
},
modalContent: { modalContent: {
backgroundColor: colors.elevated, backgroundColor: colors.elevated,
}, },
@ -257,10 +235,10 @@ const LdkInfo = () => {
return ( return (
<BottomModal isVisible={selectedChannelIndex !== undefined} onClose={closeModal} avoidKeyboard> <BottomModal isVisible={selectedChannelIndex !== undefined} onClose={closeModal} avoidKeyboard>
<View style={[styles.modalContent, stylesHook.modalContent]}> <View style={[styles.modalContent, stylesHook.modalContent]}>
<Text style={[stylesHook.detailsText]}>{loc.lnd.node_alias}</Text> <Text style={stylesHook.detailsText}>{loc.lnd.node_alias}</Text>
<BlueSpacing10 /> <BlueSpacing10 />
{channelData && ( {channelData && (
<Text style={[stylesHook.detailsText]}> <Text style={stylesHook.detailsText}>
{LightningLdkWallet.pubkeyToAlias(channelData.remote_node_id) + {LightningLdkWallet.pubkeyToAlias(channelData.remote_node_id) +
' (' + ' (' +
channelData.remote_node_id.substr(0, 10) + channelData.remote_node_id.substr(0, 10) +
@ -279,7 +257,7 @@ const LdkInfo = () => {
itemPriceUnit={wallet.getPreferredBalanceUnit()} itemPriceUnit={wallet.getPreferredBalanceUnit()}
/> />
<Text style={[stylesHook.detailsText]}> <Text style={stylesHook.detailsText}>
{status === LdkNodeInfoChannelStatus.PENDING {status === LdkNodeInfoChannelStatus.PENDING
? loc.transactions.pending ? loc.transactions.pending
: channelData?.is_usable : channelData?.is_usable
@ -428,11 +406,11 @@ const LdkInfo = () => {
</> </>
) : null} ) : null}
{maturingBalance ? ( {maturingBalance ? (
<Text style={[stylesHook.detailsText]}> <Text style={stylesHook.detailsText}>
Balance awaiting confirmations: {formatBalance(Number(maturingBalance), wallet.getPreferredBalanceUnit(), true)} Balance awaiting confirmations: {formatBalance(Number(maturingBalance), wallet.getPreferredBalanceUnit(), true)}
</Text> </Text>
) : null} ) : null}
{maturingEta ? <Text style={[stylesHook.detailsText]}>ETA: {maturingEta}</Text> : null} {maturingEta ? <Text style={stylesHook.detailsText}>ETA: {maturingEta}</Text> : null}
<Button text={loc.lnd.new_channel} onPress={navigateToOpenPrivateChannel} disabled={isLoading} /> <Button text={loc.lnd.new_channel} onPress={navigateToOpenPrivateChannel} disabled={isLoading} />
<BlueSpacing20 /> <BlueSpacing20 />
</View> </View>
@ -445,79 +423,12 @@ const styles = StyleSheet.create({
flex: 1, flex: 1,
justifyContent: 'space-between', justifyContent: 'space-between',
}, },
height100: {
alignItems: 'center',
justifyContent: 'center',
},
marginHorizontal16: { marginHorizontal16: {
marginHorizontal: 16, marginHorizontal: 16,
}, },
contentContainerStyle: { contentContainerStyle: {
marginHorizontal: 16, marginHorizontal: 16,
}, },
justifyContentCenter: {
justifyContent: 'center',
},
qrCodeContainer: { borderWidth: 6, borderRadius: 8, borderColor: '#FFFFFF' },
valueAmount: {
flexDirection: 'row',
justifyContent: 'center',
paddingBottom: 8,
},
valueText: {
fontSize: 32,
fontWeight: '600',
},
valueSats: {
fontSize: 16,
marginHorizontal: 4,
paddingBottom: 3,
fontWeight: '600',
alignSelf: 'flex-end',
},
memo: {
color: '#9aa0aa',
fontSize: 14,
marginHorizontal: 4,
paddingBottom: 6,
fontWeight: '400',
alignSelf: 'center',
},
paid: {
flex: 3,
alignItems: 'center',
justifyContent: 'center',
},
paidMark: {
marginTop: -100,
marginBottom: 16,
},
detailsRoot: {
justifyContent: 'flex-end',
marginBottom: 24,
alignItems: 'center',
},
detailsTouch: {
flexDirection: 'row',
alignItems: 'center',
},
detailsText: {
fontSize: 14,
marginRight: 8,
},
expired: {
width: 120,
height: 120,
borderRadius: 60,
alignSelf: 'center',
justifyContent: 'center',
marginBottom: 30,
},
activeRoot: {
flex: 1,
alignItems: 'center',
justifyContent: 'space-between',
},
listHeaderText: { listHeaderText: {
marginTop: 8, marginTop: 8,
marginBottom: 8, marginBottom: 8,
@ -529,14 +440,6 @@ const styles = StyleSheet.create({
justifyContent: 'space-between', justifyContent: 'space-between',
alignItems: 'center', alignItems: 'center',
}, },
activeQrcode: {
alignItems: 'center',
justifyContent: 'center',
marginHorizontal: 16,
borderWidth: 6,
borderRadius: 8,
borderColor: '#FFFFFF',
},
modalContent: { modalContent: {
minHeight: 418, minHeight: 418,
borderTopLeftRadius: 16, borderTopLeftRadius: 16,
@ -544,29 +447,10 @@ const styles = StyleSheet.create({
borderColor: 'rgba(0, 0, 0, 0.1)', borderColor: 'rgba(0, 0, 0, 0.1)',
padding: 24, padding: 24,
}, },
newChannelModalContent: {
padding: 24,
minHeight: 350,
borderTopLeftRadius: 16,
borderTopRightRadius: 16,
borderColor: 'rgba(0, 0, 0, 0.1)',
},
fundingNewChannelModalContent: {
padding: 24,
paddingTop: 24,
borderTopLeftRadius: 16,
borderTopRightRadius: 16,
borderColor: 'rgba(0, 0, 0, 0.1)',
height: 400,
},
separator: { separator: {
height: 1, height: 1,
marginTop: 16, marginTop: 16,
}, },
textHeader: {
fontSize: 18,
fontWeight: 'bold',
},
}); });
LdkInfo.navigationOptions = navigationStyle( LdkInfo.navigationOptions = navigationStyle(

View file

@ -55,27 +55,6 @@ const LdkOpenChannel = (props: any) => {
root: { root: {
backgroundColor: colors.elevated, backgroundColor: colors.elevated,
}, },
valueText: {
color: colors.alternativeTextColor2,
},
valueRoot: {
backgroundColor: colors.background,
},
valueSats: {
color: colors.alternativeTextColor2,
},
paidMark: {
backgroundColor: colors.success,
},
detailsText: {
color: colors.alternativeTextColor,
},
expired: {
backgroundColor: colors.success,
},
additionalInfo: {
backgroundColor: colors.brandingColor,
},
}); });
/** /**
@ -307,85 +286,19 @@ const styles = StyleSheet.create({
root: { root: {
flex: 1, flex: 1,
}, },
contentContainerStyle: {
flexGrow: 1,
},
justifyContentCenter: { justifyContentCenter: {
justifyContent: 'center', justifyContent: 'center',
}, },
qrCodeContainer: { borderWidth: 6, borderRadius: 8, borderColor: '#FFFFFF' },
valueAmount: {
flexDirection: 'row',
justifyContent: 'center',
paddingBottom: 8,
},
horizontalButtons: { horizontalButtons: {
flexDirection: 'row', flexDirection: 'row',
justifyContent: 'center', justifyContent: 'center',
}, },
valueText: {
fontSize: 32,
fontWeight: '600',
},
valueSats: {
fontSize: 16,
marginHorizontal: 4,
paddingBottom: 3,
fontWeight: '600',
alignSelf: 'flex-end',
},
memo: {
color: '#9aa0aa',
fontSize: 14,
marginHorizontal: 4,
paddingBottom: 6,
fontWeight: '400',
alignSelf: 'center',
},
paid: {
flex: 3,
alignItems: 'center',
justifyContent: 'center',
},
paidMark: {
marginTop: -100,
marginBottom: 16,
},
detailsRoot: {
justifyContent: 'flex-end',
marginBottom: 24,
alignItems: 'center',
},
detailsTouch: {
flexDirection: 'row',
alignItems: 'center',
},
detailsText: {
fontSize: 14,
marginRight: 8,
},
expired: {
width: 120,
height: 120,
borderRadius: 60,
alignSelf: 'center',
justifyContent: 'center',
marginBottom: 30,
},
activeRoot: { activeRoot: {
flex: 1, flex: 1,
alignItems: 'center', alignItems: 'center',
justifyContent: 'space-between', justifyContent: 'space-between',
padding: 16, padding: 16,
}, },
activeQrcode: {
alignItems: 'center',
justifyContent: 'center',
marginHorizontal: 16,
borderWidth: 6,
borderRadius: 8,
borderColor: '#FFFFFF',
},
}); });
LdkOpenChannel.navigationOptions = navigationStyle( LdkOpenChannel.navigationOptions = navigationStyle(

View file

@ -484,10 +484,6 @@ const styles = StyleSheet.create({
textAlignVertical: 'bottom', textAlignVertical: 'bottom',
marginTop: 2, marginTop: 2,
}, },
error: {
flex: 1,
paddingTop: 20,
},
root: { root: {
flex: 1, flex: 1,
justifyContent: 'space-between', justifyContent: 'space-between',

View file

@ -35,18 +35,6 @@ const LNDViewInvoice = () => {
root: { root: {
backgroundColor: colors.background, backgroundColor: colors.background,
}, },
valueText: {
color: colors.alternativeTextColor2,
},
valueRoot: {
backgroundColor: colors.background,
},
valueSats: {
color: colors.alternativeTextColor2,
},
paidMark: {
backgroundColor: colors.success,
},
detailsText: { detailsText: {
color: colors.alternativeTextColor, color: colors.alternativeTextColor,
}, },
@ -306,39 +294,6 @@ const styles = StyleSheet.create({
justifyContentCenter: { justifyContentCenter: {
justifyContent: 'center', justifyContent: 'center',
}, },
valueAmount: {
flexDirection: 'row',
justifyContent: 'center',
paddingBottom: 8,
},
valueText: {
fontSize: 32,
fontWeight: '600',
},
valueSats: {
fontSize: 16,
marginHorizontal: 4,
paddingBottom: 3,
fontWeight: '600',
alignSelf: 'flex-end',
},
memo: {
color: '#9aa0aa',
fontSize: 14,
marginHorizontal: 4,
paddingBottom: 6,
fontWeight: '400',
alignSelf: 'center',
},
paid: {
flex: 3,
alignItems: 'center',
justifyContent: 'center',
},
paidMark: {
marginTop: -100,
marginBottom: 16,
},
detailsRoot: { detailsRoot: {
justifyContent: 'flex-end', justifyContent: 'flex-end',
marginBottom: 24, marginBottom: 24,

View file

@ -131,12 +131,6 @@ const ReceiveDetails = () => {
textAlign: 'center', textAlign: 'center',
paddingBottom: 24, paddingBottom: 24,
}, },
loading: {
alignItems: 'center',
width: 300,
height: 300,
backgroundColor: colors.elevated,
},
modalButton: { modalButton: {
backgroundColor: colors.modalButton, backgroundColor: colors.modalButton,
paddingVertical: 14, paddingVertical: 14,

View file

@ -40,12 +40,6 @@ const Broadcast = () => {
const [broadcastResult, setBroadcastResult] = useState(BROADCAST_RESULT.none); const [broadcastResult, setBroadcastResult] = useState(BROADCAST_RESULT.none);
const stylesHooks = StyleSheet.create({ const stylesHooks = StyleSheet.create({
blueArea: {
backgroundColor: colors.background,
},
text: {
color: colors.foregroundColor,
},
input: { input: {
borderColor: colors.formBorder, borderColor: colors.formBorder,
borderBottomColor: colors.formBorder, borderBottomColor: colors.formBorder,

View file

@ -218,10 +218,6 @@ const styles = StyleSheet.create({
height: 0.5, height: 0.5,
marginVertical: 16, marginVertical: 16,
}, },
card: {
alignItems: 'center',
flex: 1,
},
cardText: { cardText: {
fontWeight: '500', fontWeight: '500',
}, },

View file

@ -22,9 +22,6 @@ const IsItMyAddress = () => {
const [resultCleanAddress, setResultCleanAddress] = useState(); const [resultCleanAddress, setResultCleanAddress] = useState();
const stylesHooks = StyleSheet.create({ const stylesHooks = StyleSheet.create({
text: {
color: colors.foregroundColor,
},
input: { input: {
borderColor: colors.formBorder, borderColor: colors.formBorder,
borderBottomColor: colors.formBorder, borderBottomColor: colors.formBorder,
@ -152,14 +149,6 @@ const styles = StyleSheet.create({
blueArea: { blueArea: {
paddingTop: 19, paddingTop: 19,
}, },
broadcastResultWrapper: {
flex: 1,
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
height: '100%',
width: '100%',
},
mainCard: { mainCard: {
padding: 0, padding: 0,
display: 'flex', display: 'flex',
@ -167,18 +156,6 @@ const styles = StyleSheet.create({
alignItems: 'center', alignItems: 'center',
justifyContent: 'flex-start', justifyContent: 'flex-start',
}, },
topFormRow: {
flex: 0.1,
flexBasis: 0.1,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
paddingBottom: 10,
paddingTop: 0,
paddingRight: 100,
height: 30,
maxHeight: 30,
},
input: { input: {
flexDirection: 'row', flexDirection: 'row',
borderWidth: 1, borderWidth: 1,

View file

@ -37,15 +37,9 @@ const PsbtMultisig = () => {
textBtc: { textBtc: {
color: colors.buttonAlternativeTextColor, color: colors.buttonAlternativeTextColor,
}, },
textDestinationFirstFour: {
color: colors.buttonAlternativeTextColor,
},
textBtcUnitValue: { textBtcUnitValue: {
color: colors.buttonAlternativeTextColor, color: colors.buttonAlternativeTextColor,
}, },
textDestination: {
color: colors.foregroundColor,
},
textFiat: { textFiat: {
color: colors.alternativeTextColor, color: colors.alternativeTextColor,
}, },
@ -330,10 +324,6 @@ const styles = StyleSheet.create({
flex: 90, flex: 90,
marginLeft: '-11%', marginLeft: '-11%',
}, },
scrollViewContent: {
flexGrow: 1,
justifyContent: 'space-between',
},
container: { container: {
flexDirection: 'column', flexDirection: 'column',
paddingTop: 24, paddingTop: 24,
@ -399,8 +389,6 @@ const styles = StyleSheet.create({
alignItems: 'center', alignItems: 'center',
}, },
itemUnsignedWrapper: { flexDirection: 'row', paddingTop: 16 }, itemUnsignedWrapper: { flexDirection: 'row', paddingTop: 16 },
textDestinationSpacingRight: { marginRight: 4 },
textDestinationSpacingLeft: { marginLeft: 4 },
vaultKeyTextSigned: { fontSize: 18, fontWeight: 'bold' }, vaultKeyTextSigned: { fontSize: 18, fontWeight: 'bold' },
vaultKeyTextSignedWrapper: { justifyContent: 'center', alignItems: 'center', paddingLeft: 16 }, vaultKeyTextSignedWrapper: { justifyContent: 'center', alignItems: 'center', paddingLeft: 16 },
flexDirectionRow: { flexDirection: 'row', paddingVertical: 12 }, flexDirectionRow: { flexDirection: 'row', paddingVertical: 12 },

View file

@ -125,10 +125,6 @@ const styles = StyleSheet.create({
marginLeft: 20, marginLeft: 20,
marginRight: 20, marginRight: 20,
}, },
copyToClipboard: {
justifyContent: 'center',
alignItems: 'center',
},
exportButton: { exportButton: {
height: 48, height: 48,
borderRadius: 8, borderRadius: 8,

View file

@ -512,11 +512,6 @@ const styles = StyleSheet.create({
marginBottom: -24, marginBottom: -24,
flexShrink: 1, flexShrink: 1,
}, },
flexShrink: {
flexShrink: 1,
marginRight: 8,
alignItems: 'flex-start',
},
inputWrap: { inputWrap: {
flex: 1, flex: 1,
flexDirection: 'row', flexDirection: 'row',

View file

@ -35,9 +35,6 @@ const styles = StyleSheet.create({
backgroundColor: 'transparent', backgroundColor: 'transparent',
flexDirection: I18nManager.isRTL ? 'row-reverse' : 'row', flexDirection: I18nManager.isRTL ? 'row-reverse' : 'row',
}, },
torSupported: {
color: '#81868e',
},
}); });
type LightingSettingsRouteProps = RouteProp< type LightingSettingsRouteProps = RouteProp<

View file

@ -1,5 +1,5 @@
import React, { useState, useEffect, useContext } from 'react'; import React, { useState, useEffect, useContext } from 'react';
import { View, StyleSheet } from 'react-native'; import { View } from 'react-native';
import navigationStyle from '../../components/navigationStyle'; import navigationStyle from '../../components/navigationStyle';
import { BlueButton, BlueCard, BlueListItem, BlueLoading, BlueSpacing20, BlueText, SafeBlueArea } from '../../BlueComponents'; import { BlueButton, BlueCard, BlueListItem, BlueLoading, BlueSpacing20, BlueText, SafeBlueArea } from '../../BlueComponents';
@ -9,12 +9,6 @@ import alert from '../../components/Alert';
const torrific = require('../../blue_modules/torrific'); const torrific = require('../../blue_modules/torrific');
const styles = StyleSheet.create({
torSupported: {
color: '#81868e',
},
});
/* /*
TorSettings is not displayed in Settings menu if isTorCapable is false. No need to provide code protection. TorSettings is not displayed in Settings menu if isTorCapable is false. No need to provide code protection.
*/ */
@ -77,7 +71,7 @@ const TorSettings = () => {
if (isLoading) { if (isLoading) {
return ( return (
<View style={[styles.root]}> <View>
<BlueLoading /> <BlueLoading />
</View> </View>
); );

View file

@ -62,20 +62,6 @@ const styles = StyleSheet.create({
fontWeight: '500', fontWeight: '500',
alignSelf: 'center', alignSelf: 'center',
}, },
doneWrap: {
flex: 1,
paddingTop: 19,
},
doneCard: {
flexDirection: 'row',
justifyContent: 'center',
paddingTop: 76,
paddingBottom: 16,
},
blueBigCheckmark: {
marginTop: 43,
marginBottom: 53,
},
}); });
export default class CPFP extends Component { export default class CPFP extends Component {

View file

@ -36,9 +36,6 @@ const TransactionsDetails = () => {
const [memo, setMemo] = useState(); const [memo, setMemo] = useState();
const { colors } = useTheme(); const { colors } = useTheme();
const stylesHooks = StyleSheet.create({ const stylesHooks = StyleSheet.create({
txLink: {
color: colors.alternativeTextColor2,
},
saveText: { saveText: {
color: colors.alternativeTextColor2, color: colors.alternativeTextColor2,
}, },
@ -278,10 +275,6 @@ const styles = StyleSheet.create({
fontSize: 16, fontSize: 16,
fontWeight: '500', fontWeight: '500',
}, },
txHash: {
marginBottom: 8,
color: 'grey',
},
Link: { Link: {
fontWeight: '600', fontWeight: '600',
fontSize: 15, fontSize: 15,

View file

@ -420,7 +420,7 @@ const TransactionsStatus = () => {
</Text> </Text>
</View> </View>
{eta ? ( {eta ? (
<View style={[styles.eta]}> <View style={styles.eta}>
<BlueSpacing10 /> <BlueSpacing10 />
<Text style={styles.confirmationsText}>{eta}</Text> <Text style={styles.confirmationsText}>{eta}</Text>
</View> </View>

View file

@ -401,10 +401,6 @@ const styles = StyleSheet.create({
createButton: { createButton: {
flex: 1, flex: 1,
}, },
loading: {
flex: 1,
paddingTop: 20,
},
label: { label: {
flexDirection: 'row', flexDirection: 'row',
borderWidth: 1, borderWidth: 1,
@ -455,9 +451,6 @@ const styles = StyleSheet.create({
noPadding: { noPadding: {
paddingHorizontal: 0, paddingHorizontal: 0,
}, },
typeMargin: {
marginTop: 8,
},
}); });
export default WalletsAdd; export default WalletsAdd;

View file

@ -33,10 +33,6 @@ const WalletsAddMultisig = () => {
textdesc: { textdesc: {
color: colors.alternativeTextColor, color: colors.alternativeTextColor,
}, },
whiteBackground: { backgroundColor: colors.background },
itemNameWrapper: { backgroundColor: colors.elevated },
nativeName: { color: colors.foregroundColor },
filteTextWrapper: { color: colors.foregroundColor, right: 0, position: 'absolute' },
modalContentShort: { modalContentShort: {
backgroundColor: colors.elevated, backgroundColor: colors.elevated,
}, },
@ -211,7 +207,7 @@ const WalletsAddMultisig = () => {
</Text> </Text>
</View> </View>
{isAdvancedModeEnabledRender && ( {isAdvancedModeEnabledRender && (
<View style={styles.advancedOptionsContainer}> <View>
<BlueListItem <BlueListItem
onPress={showAdvancedOptionsModal} onPress={showAdvancedOptionsModal}
title={loc.multisig.vault_advanced_customize} title={loc.multisig.vault_advanced_customize}
@ -229,13 +225,6 @@ const WalletsAddMultisig = () => {
}; };
const styles = StyleSheet.create({ const styles = StyleSheet.create({
modalFlatList: { width: '100%' },
itemNameWrapper: { flexDirection: 'row', paddingTop: 20, paddingBottom: 0 },
textWrapper: { paddingLeft: 10, flex: 1, flexDirection: 'row' },
nativeName: { fontSize: 16 },
filteTextWrapper: { right: 0, position: 'absolute' },
filterText: { fontSize: 16, color: 'gray' },
advancedOptionsContainer: {},
item: { item: {
paddingHorizontal: 0, paddingHorizontal: 0,
}, },
@ -253,30 +242,12 @@ const styles = StyleSheet.create({
borderColor: 'rgba(0, 0, 0, 0.1)', borderColor: 'rgba(0, 0, 0, 0.1)',
minHeight: 350, minHeight: 350,
}, },
formatSelectorTextWrapper: {
borderRadius: 6,
paddingVertical: 12,
paddingHorizontal: 8,
borderColor: 0,
},
borderRadius6: { borderRadius6: {
borderRadius: 6, borderRadius: 6,
}, },
formatSelectorTextWrapperSelected: {
backgroundColor: '#EEF0F4',
borderRadius: 6,
paddingVertical: 12,
paddingHorizontal: 8,
borderColor: 0,
},
buttonContainer: { buttonContainer: {
padding: 24, padding: 24,
}, },
formatSelectorText: {
color: '#13244D',
fontSize: 16,
fontWeight: '500',
},
column: { column: {
paddingRight: 20, paddingRight: 20,
paddingLeft: 20, paddingLeft: 20,

View file

@ -44,7 +44,7 @@ const WalletsAddMultisigHelp = () => {
<View style={[styles.intro, stylesHook.intro]}> <View style={[styles.intro, stylesHook.intro]}>
<Text style={[styles.introTitle, stylesHook.introTitle]}>{loc.multisig.ms_help_title}</Text> <Text style={[styles.introTitle, stylesHook.introTitle]}>{loc.multisig.ms_help_title}</Text>
<Text style={[styles.introText, stylesHook.introText]}>{loc.multisig.ms_help_text}</Text> <Text style={[styles.introText, stylesHook.introText]}>{loc.multisig.ms_help_text}</Text>
<Image style={[styles.introImage]} source={require('../../img/mshelp/mshelp-intro.png')} /> <Image style={styles.introImage} source={require('../../img/mshelp/mshelp-intro.png')} />
</View> </View>
<View style={[styles.tip, stylesHook.tip]}> <View style={[styles.tip, stylesHook.tip]}>
<Text style={[styles.introTip, stylesHook.introTip]} /> <Text style={[styles.introTip, stylesHook.introTip]} />
@ -54,22 +54,22 @@ const WalletsAddMultisigHelp = () => {
<Text style={[styles.tipsText, stylesHook.tipsText]}>{loc.multisig.ms_help_1}</Text> <Text style={[styles.tipsText, stylesHook.tipsText]}>{loc.multisig.ms_help_1}</Text>
</View> </View>
<View style={[styles.tips, stylesHook.tips]}> <View style={[styles.tips, stylesHook.tips]}>
<Image style={[styles.imageTip]} source={require('../../img/mshelp/tip2.png')} /> <Image style={styles.imageTip} source={require('../../img/mshelp/tip2.png')} />
<Text style={[styles.tipsTitle, stylesHook.tipsTitle]}>{loc.multisig.ms_help_title2}</Text> <Text style={[styles.tipsTitle, stylesHook.tipsTitle]}>{loc.multisig.ms_help_title2}</Text>
<Text style={[styles.tipsText, stylesHook.tipsText]}>{loc.multisig.ms_help_2}</Text> <Text style={[styles.tipsText, stylesHook.tipsText]}>{loc.multisig.ms_help_2}</Text>
</View> </View>
<View style={[styles.tips, stylesHook.tips]}> <View style={[styles.tips, stylesHook.tips]}>
<Image style={[styles.imageTip]} source={require('../../img/mshelp/tip3.png')} /> <Image style={styles.imageTip} source={require('../../img/mshelp/tip3.png')} />
<Text style={[styles.tipsTitle, stylesHook.tipsTitle]}>{loc.multisig.ms_help_title3}</Text> <Text style={[styles.tipsTitle, stylesHook.tipsTitle]}>{loc.multisig.ms_help_title3}</Text>
<Text style={[styles.tipsText, stylesHook.tipsText]}>{loc.multisig.ms_help_3}</Text> <Text style={[styles.tipsText, stylesHook.tipsText]}>{loc.multisig.ms_help_3}</Text>
</View> </View>
<View style={[styles.tips, stylesHook.tips]}> <View style={[styles.tips, stylesHook.tips]}>
<Image style={[styles.imageTip]} source={require('../../img/mshelp/tip4.png')} /> <Image style={styles.imageTip} source={require('../../img/mshelp/tip4.png')} />
<Text style={[styles.tipsTitle, stylesHook.tipsTitle]}>{loc.multisig.ms_help_title4}</Text> <Text style={[styles.tipsTitle, stylesHook.tipsTitle]}>{loc.multisig.ms_help_title4}</Text>
<Text style={[styles.tipsText, stylesHook.tipsText]}>{loc.multisig.ms_help_4}</Text> <Text style={[styles.tipsText, stylesHook.tipsText]}>{loc.multisig.ms_help_4}</Text>
</View> </View>
<View style={[styles.tips, stylesHook.tips]}> <View style={[styles.tips, stylesHook.tips]}>
<Image style={[styles.imageTip]} source={require('../../img/mshelp/tip5.png')} /> <Image style={styles.imageTip} source={require('../../img/mshelp/tip5.png')} />
<Text style={[styles.tipsTitle, stylesHook.tipsTitle]}>{loc.multisig.ms_help_title5}</Text> <Text style={[styles.tipsTitle, stylesHook.tipsTitle]}>{loc.multisig.ms_help_title5}</Text>
<Text style={[styles.tipsText, stylesHook.tipsText]}>{loc.multisig.ms_help_5}</Text> <Text style={[styles.tipsText, stylesHook.tipsText]}>{loc.multisig.ms_help_5}</Text>
</View> </View>

View file

@ -75,60 +75,27 @@ const WalletsAddMultisigStep2 = () => {
root: { root: {
backgroundColor: colors.elevated, backgroundColor: colors.elevated,
}, },
textBtc: {
color: colors.buttonAlternativeTextColor,
},
textDestinationFirstFour: {
color: colors.buttonAlternativeTextColor,
},
textBtcUnitValue: {
color: colors.buttonAlternativeTextColor,
},
textDestination: { textDestination: {
color: colors.foregroundColor, color: colors.foregroundColor,
}, },
modalContentShort: {
backgroundColor: colors.modal,
},
modalContent: { modalContent: {
backgroundColor: colors.modal, backgroundColor: colors.modal,
}, },
textFiat: {
color: colors.alternativeTextColor,
},
provideKeyButton: {
backgroundColor: colors.buttonDisabledBackgroundColor,
},
exportButton: { exportButton: {
backgroundColor: colors.buttonDisabledBackgroundColor, backgroundColor: colors.buttonDisabledBackgroundColor,
}, },
provideKeyButtonText: {
color: colors.buttonTextColor,
},
vaultKeyCircle: {
backgroundColor: colors.buttonDisabledBackgroundColor,
},
vaultKeyText: { vaultKeyText: {
color: colors.alternativeTextColor, color: colors.alternativeTextColor,
}, },
feeFiatText: {
color: colors.alternativeTextColor,
},
vaultKeyCircleSuccess: { vaultKeyCircleSuccess: {
backgroundColor: colors.msSuccessBG, backgroundColor: colors.msSuccessBG,
}, },
vaultKeyTextSigned: {
color: colors.msSuccessBG,
},
word: { word: {
backgroundColor: colors.inputBackgroundColor, backgroundColor: colors.inputBackgroundColor,
}, },
wordText: { wordText: {
color: colors.labelText, color: colors.labelText,
}, },
headerText: {
color: colors.foregroundColor,
},
helpButton: { helpButton: {
backgroundColor: colors.buttonDisabledBackgroundColor, backgroundColor: colors.buttonDisabledBackgroundColor,
}, },
@ -637,7 +604,7 @@ const WalletsAddMultisigStep2 = () => {
return ( return (
<View style={[styles.root, stylesHook.root]}> <View style={[styles.root, stylesHook.root]}>
{renderHelp()} {renderHelp()}
<View style={[styles.wrapBox]}> <View style={styles.wrapBox}>
<FlatList data={data.current} renderItem={_renderKeyItem} keyExtractor={(_item, index) => `${index}`} /> <FlatList data={data.current} renderItem={_renderKeyItem} keyExtractor={(_item, index) => `${index}`} />
</View> </View>
{renderMnemonicsModal()} {renderMnemonicsModal()}
@ -655,11 +622,6 @@ const styles = StyleSheet.create({
flex: 1, flex: 1,
paddingHorizontal: 20, paddingHorizontal: 20,
}, },
mainBlock: {
height: '100%',
marginHorizontal: 20,
marginVertical: 24,
},
wrapBox: { wrapBox: {
flex: 1, flex: 1,
marginVertical: 24, marginVertical: 24,
@ -670,42 +632,9 @@ const styles = StyleSheet.create({
marginBottom: 40, marginBottom: 40,
justifyContent: 'flex-end', justifyContent: 'flex-end',
}, },
itemKeyUnprovidedWrapper: { flexDirection: 'row' }, itemKeyUnprovidedWrapper: { flexDirection: 'row' },
vaultKeyCircle: {
width: 42,
height: 42,
borderRadius: 25,
justifyContent: 'center',
alignItems: 'center',
},
vaultKeyText: { fontSize: 18, fontWeight: 'bold' }, vaultKeyText: { fontSize: 18, fontWeight: 'bold' },
vaultKeyTextWrapper: { justifyContent: 'center', alignItems: 'center', paddingLeft: 16 }, vaultKeyTextWrapper: { justifyContent: 'center', alignItems: 'center', paddingLeft: 16 },
provideKeyButton: {
marginTop: 4,
marginLeft: 40,
height: 48,
borderRadius: 8,
justifyContent: 'center',
paddingHorizontal: 16,
marginBottom: 8,
},
grayButton: {
marginTop: 24,
marginLeft: 40,
height: 48,
borderRadius: 8,
justifyContent: 'center',
paddingHorizontal: 16,
marginBottom: 8,
},
buttonContainer: {
flexDirection: 'row',
marginVertical: 24,
alignItems: 'center',
justifyContent: 'flex-end',
},
provideKeyButtonText: { fontWeight: '600', fontSize: 15 },
textDestination: { fontWeight: '600' }, textDestination: { fontWeight: '600' },
modalContent: { modalContent: {
paddingHorizontal: 22, paddingHorizontal: 22,
@ -750,8 +679,6 @@ const styles = StyleSheet.create({
wordText: { wordText: {
fontWeight: 'bold', fontWeight: 'bold',
}, },
vaultKeyTextSignedWrapper: { justifyContent: 'center', alignItems: 'center', paddingLeft: 16 },
vaultKeyTextSigned: { fontSize: 18, fontWeight: 'bold' },
exportButton: { exportButton: {
height: 48, height: 48,
borderRadius: 8, borderRadius: 8,
@ -760,11 +687,8 @@ const styles = StyleSheet.create({
paddingHorizontal: 16, paddingHorizontal: 16,
}, },
headerText: { fontSize: 15, color: '#13244D' }, headerText: { fontSize: 15, color: '#13244D' },
header2Text: { color: '#9AA0AA', fontSize: 14, paddingBottom: 20 },
alignItemsCenter: { alignItems: 'center' }, alignItemsCenter: { alignItems: 'center' },
squareButtonWrapper: { height: 50, width: 250 }, squareButtonWrapper: { height: 50, width: 250 },
qrCodeContainer: { borderWidth: 6, borderRadius: 8, borderColor: '#FFFFFF' },
helpButtonWrapper: { helpButtonWrapper: {
alignItems: 'flex-end', alignItems: 'flex-end',
flexDirection: I18nManager.isRTL ? 'row' : 'row-reverse', flexDirection: I18nManager.isRTL ? 'row' : 'row-reverse',

View file

@ -48,9 +48,6 @@ import alert from '../../components/Alert';
const prompt = require('../../blue_modules/prompt'); const prompt = require('../../blue_modules/prompt');
const styles = StyleSheet.create({ const styles = StyleSheet.create({
root: {
flex: 1,
},
scrollViewContent: { scrollViewContent: {
flexGrow: 1, flexGrow: 1,
}, },

View file

@ -94,14 +94,6 @@ const styles = StyleSheet.create({
root: { root: {
flex: 1, flex: 1,
}, },
absolute: {
position: 'absolute',
top: 0,
left: 0,
bottom: 0,
right: 0,
},
}); });
DrawerList.propTypes = { DrawerList.propTypes = {

View file

@ -939,13 +939,6 @@ const styles = StyleSheet.create({
fontSize: 15, fontSize: 15,
fontWeight: '600', fontWeight: '600',
}, },
allOffersText: {
fontSize: 12,
color: '#9AA0AA',
position: 'absolute',
top: 0,
left: 15,
},
locationText: { locationText: {
top: 0, top: 0,
left: 5, left: 5,

View file

@ -408,7 +408,6 @@ const styles = StyleSheet.create({
fontWeight: 'bold', fontWeight: 'bold',
color: BlueCurrentTheme.colors.feeText, color: BlueCurrentTheme.colors.feeText,
}, },
loading: { backgroundColor: BlueCurrentTheme.colors.elevated },
emptyComponentText: { textAlign: 'center', color: '#9AA0AA', paddingHorizontal: 16, backgroundColor: BlueCurrentTheme.colors.elevated }, emptyComponentText: { textAlign: 'center', color: '#9AA0AA', paddingHorizontal: 16, backgroundColor: BlueCurrentTheme.colors.elevated },
itemSeparatorComponent: { height: 0.5, width: '100%', backgroundColor: '#C8C8C8' }, itemSeparatorComponent: { height: 0.5, width: '100%', backgroundColor: '#C8C8C8' },
flexDirectionRow: { flexDirection: 'row' }, flexDirectionRow: { flexDirection: 'row' },

View file

@ -157,9 +157,6 @@ const styles = StyleSheet.create({
flatListContainer: { flatListContainer: {
marginHorizontal: 16, marginHorizontal: 16,
}, },
listContainer: {
minHeight: 100,
},
center: { center: {
marginHorizontal: 16, marginHorizontal: 16,
alignItems: 'center', alignItems: 'center',

View file

@ -26,12 +26,6 @@ const LdkViewLogs = () => {
root: { root: {
backgroundColor: colors.elevated, backgroundColor: colors.elevated,
}, },
text: {
borderColor: colors.formBorder,
borderBottomColor: colors.formBorder,
backgroundColor: colors.inputBackgroundColor,
color: colors.foregroundColor,
},
}); });
useEffect(() => { useEffect(() => {
@ -141,31 +135,6 @@ const styles = StyleSheet.create({
root: { root: {
flex: 1, flex: 1,
}, },
text: {
paddingHorizontal: 8,
paddingVertical: 8,
marginTop: 5,
marginHorizontal: 20,
borderWidth: 1,
borderBottomWidth: 0.5,
borderRadius: 4,
textAlignVertical: 'top',
},
textMessage: {
minHeight: 50,
},
flex: {
flex: 1,
},
loading: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
justifyContent: 'center',
alignItems: 'center',
},
button: { button: {
alignItems: 'center', alignItems: 'center',
padding: 10, padding: 10,

View file

@ -61,16 +61,6 @@ const WalletsList = () => {
listHeaderText: { listHeaderText: {
color: colors.foregroundColor, color: colors.foregroundColor,
}, },
ltRoot: {
backgroundColor: colors.ballOutgoingExpired,
},
ltTextBig: {
color: colors.foregroundColor,
},
ltTextSmall: {
color: colors.alternativeTextColor,
},
}); });
useFocusEffect( useFocusEffect(
@ -410,28 +400,9 @@ const styles = StyleSheet.create({
bottom: 60, bottom: 60,
right: 0, right: 0,
}, },
wrapper: {
flex: 1,
},
walletsListWrapper: { walletsListWrapper: {
flex: 1, flex: 1,
}, },
headerStyle: {
...Platform.select({
ios: {
marginTop: 44,
height: 32,
alignItems: 'flex-end',
justifyContent: 'center',
},
android: {
marginTop: 8,
height: 44,
alignItems: 'flex-end',
justifyContent: 'center',
},
}),
},
headerTouch: { headerTouch: {
height: 48, height: 48,
paddingVertical: 10, paddingVertical: 10,
@ -447,28 +418,6 @@ const styles = StyleSheet.create({
fontSize: 24, fontSize: 24,
marginVertical: 16, marginVertical: 16,
}, },
ltRoot: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
marginHorizontal: 16,
marginVertical: 16,
padding: 16,
borderRadius: 6,
},
ltTextWrap: {
flexDirection: 'column',
},
ltTextBig: {
fontSize: 16,
fontWeight: '600',
writingDirection: I18nManager.isRTL ? 'rtl' : 'ltr',
},
ltTextSmall: {
fontSize: 13,
fontWeight: '500',
writingDirection: I18nManager.isRTL ? 'rtl' : 'ltr',
},
footerRoot: { footerRoot: {
top: 80, top: 80,
height: 160, height: 160,
@ -485,9 +434,6 @@ const styles = StyleSheet.create({
textAlign: 'center', textAlign: 'center',
fontWeight: '600', fontWeight: '600',
}, },
listHeader: {
backgroundColor: '#FFFFFF',
},
transaction: { transaction: {
marginHorizontal: 0, marginHorizontal: 0,
}, },

View file

@ -220,9 +220,6 @@ const Entropy = () => {
entropyText: { entropyText: {
color: colors.foregroundColor, color: colors.foregroundColor,
}, },
coinBody: {
borderColor: colors.lightButton,
},
}); });
const push = v => v && dispatch({ type: 'push', value: v.value, bits: v.bits }); const push = v => v && dispatch({ type: 'push', value: v.value, bits: v.bits });

View file

@ -13,10 +13,6 @@ import { BlueStorageContext } from '../../blue_modules/storage-context';
import { GestureHandlerRootView } from 'react-native-gesture-handler'; import { GestureHandlerRootView } from 'react-native-gesture-handler';
const styles = StyleSheet.create({ const styles = StyleSheet.create({
loading: {
flex: 1,
paddingTop: 20,
},
root: { root: {
flex: 1, flex: 1,
}, },
@ -82,9 +78,6 @@ const ReorderWallets = () => {
root: { root: {
backgroundColor: colors.elevated, backgroundColor: colors.elevated,
}, },
loading: {
backgroundColor: colors.elevated,
},
tip: { tip: {
backgroundColor: colors.ballOutgoingExpired, backgroundColor: colors.ballOutgoingExpired,
}, },

View file

@ -61,9 +61,6 @@ const WalletTransactions = () => {
const walletActionButtonsRef = useRef(); const walletActionButtonsRef = useRef();
const stylesHook = StyleSheet.create({ const stylesHook = StyleSheet.create({
advancedTransactionOptionsModalContent: {
backgroundColor: colors.elevated,
},
listHeaderText: { listHeaderText: {
color: colors.foregroundColor, color: colors.foregroundColor,
}, },
@ -271,7 +268,7 @@ const WalletTransactions = () => {
<LNNodeBar canSend={lnNodeInfo.canSend} canReceive={lnNodeInfo.canReceive} itemPriceUnit={itemPriceUnit} /> <LNNodeBar canSend={lnNodeInfo.canSend} canReceive={lnNodeInfo.canReceive} itemPriceUnit={itemPriceUnit} />
</View> </View>
)} )}
<View style={[styles.listHeaderTextRow, stylesHook.listHeaderTextRow]}> <View style={styles.listHeaderTextRow}>
<Text style={[styles.listHeaderText, stylesHook.listHeaderText]}>{loc.transactions.list_title}</Text> <Text style={[styles.listHeaderText, stylesHook.listHeaderText]}>{loc.transactions.list_title}</Text>
<TouchableOpacity <TouchableOpacity
accessibilityRole="button" accessibilityRole="button"
@ -724,24 +721,6 @@ const styles = StyleSheet.create({
marginBottom18: { marginBottom18: {
marginBottom: 18, marginBottom: 18,
}, },
modalContent: {
backgroundColor: '#FFFFFF',
padding: 22,
justifyContent: 'center',
alignItems: 'center',
borderTopLeftRadius: 16,
borderTopRightRadius: 16,
borderColor: 'rgba(0, 0, 0, 0.1)',
minHeight: 200,
height: 200,
},
advancedTransactionOptionsModalContent: {
padding: 22,
borderTopLeftRadius: 16,
borderTopRightRadius: 16,
borderColor: 'rgba(0, 0, 0, 0.1)',
minHeight: 130,
},
walletDetails: { walletDetails: {
justifyContent: 'center', justifyContent: 'center',
alignItems: 'flex-end', alignItems: 'flex-end',

View file

@ -72,57 +72,21 @@ const ViewEditMultisigCosigners = () => {
root: { root: {
backgroundColor: colors.elevated, backgroundColor: colors.elevated,
}, },
textBtc: {
color: colors.buttonAlternativeTextColor,
},
textDestinationFirstFour: {
color: colors.buttonAlternativeTextColor,
},
textBtcUnitValue: {
color: colors.buttonAlternativeTextColor,
},
textDestination: { textDestination: {
color: colors.foregroundColor, color: colors.foregroundColor,
}, },
modalContentShort: {
backgroundColor: colors.elevated,
},
modalContent: { modalContent: {
backgroundColor: colors.elevated, backgroundColor: colors.elevated,
}, },
textFiat: {
color: colors.alternativeTextColor,
},
provideKeyButton: {
backgroundColor: colors.buttonDisabledBackgroundColor,
},
exportButton: { exportButton: {
backgroundColor: colors.buttonDisabledBackgroundColor, backgroundColor: colors.buttonDisabledBackgroundColor,
}, },
provideKeyButtonText: {
color: colors.buttonTextColor,
},
vaultKeyCircle: {
backgroundColor: colors.buttonDisabledBackgroundColor,
},
vaultKeyText: { vaultKeyText: {
color: colors.alternativeTextColor, color: colors.alternativeTextColor,
}, },
feeFiatText: {
color: colors.alternativeTextColor,
},
vaultKeyCircleSuccess: { vaultKeyCircleSuccess: {
backgroundColor: colors.msSuccessBG, backgroundColor: colors.msSuccessBG,
}, },
vaultKeyTextSigned: {
color: colors.msSuccessBG,
},
word: {
backgroundColor: colors.inputBackgroundColor,
},
wordText: {
color: colors.labelText,
},
tipKeys: { tipKeys: {
color: colors.alternativeTextColor, color: colors.alternativeTextColor,
}, },
@ -609,37 +573,9 @@ const styles = StyleSheet.create({
justifyContent: 'space-between', justifyContent: 'space-between',
}, },
itemKeyUnprovidedWrapper: { flexDirection: 'row', paddingTop: 16 }, itemKeyUnprovidedWrapper: { flexDirection: 'row', paddingTop: 16 },
vaultKeyCircle: {
width: 42,
height: 42,
borderRadius: 25,
justifyContent: 'center',
alignItems: 'center',
},
textDestination: { fontWeight: '600' }, textDestination: { fontWeight: '600' },
vaultKeyText: { fontSize: 18, fontWeight: 'bold' }, vaultKeyText: { fontSize: 18, fontWeight: 'bold' },
vaultKeyTextWrapper: { justifyContent: 'center', alignItems: 'center', paddingLeft: 16 }, vaultKeyTextWrapper: { justifyContent: 'center', alignItems: 'center', paddingLeft: 16 },
provideKeyButton: {
marginTop: 4,
marginLeft: 40,
height: 48,
borderRadius: 8,
flex: 1,
justifyContent: 'center',
paddingHorizontal: 16,
marginBottom: 8,
},
grayButton: {
marginTop: 24,
marginLeft: 40,
height: 48,
borderRadius: 8,
justifyContent: 'center',
paddingHorizontal: 16,
marginBottom: 8,
},
provideKeyButtonText: { fontWeight: '600', fontSize: 15 },
newKeyModalContent: { newKeyModalContent: {
paddingHorizontal: 22, paddingHorizontal: 22,
paddingVertical: 32, paddingVertical: 32,
@ -657,25 +593,6 @@ const styles = StyleSheet.create({
backgroundColor: 'white', backgroundColor: 'white',
minHeight: 400, minHeight: 400,
}, },
word: {
width: 'auto',
marginRight: 8,
marginBottom: 8,
paddingTop: 6,
paddingBottom: 6,
paddingLeft: 8,
paddingRight: 8,
borderRadius: 4,
},
secretContainer: {
flexDirection: 'row',
justifyContent: 'flex-start',
flexWrap: 'wrap',
},
wordText: {
fontWeight: 'bold',
},
flexDirectionRow: { flexDirection: 'row', paddingVertical: 12 },
vaultKeyCircleSuccess: { vaultKeyCircleSuccess: {
width: 42, width: 42,
height: 42, height: 42,
@ -683,8 +600,6 @@ const styles = StyleSheet.create({
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
}, },
vaultKeyTextSignedWrapper: { justifyContent: 'center', alignItems: 'center', paddingLeft: 16 },
vaultKeyTextSigned: { fontSize: 18, fontWeight: 'bold' },
exportButton: { exportButton: {
height: 48, height: 48,
borderRadius: 8, borderRadius: 8,
@ -694,7 +609,6 @@ const styles = StyleSheet.create({
}, },
headerText: { fontSize: 15, color: '#13244D' }, headerText: { fontSize: 15, color: '#13244D' },
mainBlock: { marginHorizontal: 16 }, mainBlock: { marginHorizontal: 16 },
header2Text: { color: '#9AA0AA', fontSize: 14, paddingBottom: 20 },
alignItemsCenter: { alignItems: 'center' }, alignItemsCenter: { alignItems: 'center' },
squareButtonWrapper: { height: 50, width: 250 }, squareButtonWrapper: { height: 50, width: 250 },
tipKeys: { tipKeys: {