Remove unnecessary styles

This commit is contained in:
Shreerang Kale 2025-05-06 18:21:01 +05:30
parent 11fa235dfb
commit b2d625c2ff
2 changed files with 11 additions and 22 deletions

View File

@ -312,24 +312,24 @@ export const SignTxEmbed = () => {
{isTxApprovalVisible && transactionDetails ? (
<>
<ScrollView contentContainerStyle={styles.appContainer}>
<View style={styles.section}>
<Text style={styles.sectionTitle}>Account</Text>
<View style={{ marginBottom: 16 }}>
<Text variant='titleLarge'>Account</Text>
<View style={styles.dataBox}>
<AccountDetails account={transactionDetails.account} />
</View>
</View>
<View style={styles.section}>
<Text style={styles.sectionTitle}>{`Balance (${transactionDetails.requestedNetwork.nativeDenom})`}</Text>
<View style={{ marginBottom: 16 }}>
<Text variant='titleLarge'>{`Balance (${transactionDetails.requestedNetwork.nativeDenom})`}</Text>
<View style={styles.dataBox}>
<Text style={styles.codeText}>
<Text variant='bodyLarge'>
{transactionDetails.balance}
</Text>
</View>
</View>
<View style={styles.section}>
<Text style={styles.sectionTitle}>Transaction Body</Text>
<View style={{ marginBottom: 16 }}>
<Text variant='titleLarge'>Transaction Body</Text>
<ScrollView style={styles.messageBody} contentContainerStyle={{ padding: 10 }}>
<Text style={styles.codeText}>
{formattedTxBody}
@ -337,8 +337,8 @@ export const SignTxEmbed = () => {
</ScrollView>
</View>
<View style={styles.section}>
<Text style={styles.sectionTitle}>Auth Info</Text>
<View style={{ marginBottom: 16 }}>
<Text variant='titleLarge'>Auth Info</Text>
<ScrollView style={styles.messageBody} contentContainerStyle={{ padding: 10 }}>
<Text style={styles.codeText}>
{formattedAuthInfo}
@ -346,8 +346,8 @@ export const SignTxEmbed = () => {
</ScrollView>
</View>
<View style={styles.section}>
<Text style={styles.sectionTitle}>Transaction Data To Be Signed</Text>
<View style={{ marginBottom: 16 }}>
<Text variant='titleLarge'>Transaction Data To Be Signed</Text>
<ScrollView style={styles.messageBody} contentContainerStyle={{ padding: 10 }}>
<Text style={styles.codeText}>
{formattedSignDoc}

View File

@ -355,21 +355,10 @@ const styles = StyleSheet.create({
marginTop: 12,
marginBottom: 20,
},
section: {
marginBottom: 16,
},
sectionTitle: {
fontSize: 24,
fontWeight: 'bold',
marginBottom: 8,
},
codeText: {
fontFamily: 'monospace',
fontSize: 12,
},
input: {
flex: 1,
},
});
export default styles;