Skip to content

Commit 6836101

Browse files
Getting rid of the redundant padding
1 parent 6f0c9ae commit 6836101

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/components/TransactionPreviewSkeletonView.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ function TransactionPreviewSkeletonView({transactionPreviewWidth}: TransactionPr
1414
const theme = useTheme();
1515
const styles = useThemeStyles();
1616

17-
const isWidthANumber = typeof transactionPreviewWidth === 'number';
18-
const widthOfEntireSkeleton = isWidthANumber ? transactionPreviewWidth - styles.p4.padding * 2 : transactionPreviewWidth;
1917
const height = variables.transactionPreviewSkeletonHeight;
2018
const widthOfTheLeftSkeleton = 120;
2119
const widthOfTheRightSkeleton = 68;
2220

2321
return (
24-
<View style={[styles.p4, styles.mtn1, styles.justifyContentBetween, {width: widthOfEntireSkeleton}]}>
22+
<View style={[styles.p4, styles.mtn1, styles.justifyContentBetween, {width: transactionPreviewWidth}]}>
2523
<SkeletonViewContentLoader
2624
testID={TransactionPreviewSkeletonView.displayName}
2725
animate

0 commit comments

Comments
 (0)