diff --git a/app/components/UI/Ramp/Views/BuildQuote/__snapshots__/BuildQuote.test.tsx.snap b/app/components/UI/Ramp/Views/BuildQuote/__snapshots__/BuildQuote.test.tsx.snap index 52e3ff03e42..1abf3c09e47 100644 --- a/app/components/UI/Ramp/Views/BuildQuote/__snapshots__/BuildQuote.test.tsx.snap +++ b/app/components/UI/Ramp/Views/BuildQuote/__snapshots__/BuildQuote.test.tsx.snap @@ -2604,7 +2604,6 @@ exports[`BuildQuote View Crypto Currency Data renders the loading page when cryp "padding": 0, }, undefined, - undefined, ] } > @@ -2794,7 +2793,6 @@ exports[`BuildQuote View Crypto Currency Data renders the loading page when cryp "padding": 0, }, undefined, - undefined, ] } > @@ -4194,7 +4192,6 @@ exports[`BuildQuote View Fiat Currency Data renders the loading page when fiats "padding": 0, }, undefined, - undefined, ] } > @@ -4384,7 +4381,6 @@ exports[`BuildQuote View Fiat Currency Data renders the loading page when fiats "padding": 0, }, undefined, - undefined, ] } > @@ -5784,7 +5780,6 @@ exports[`BuildQuote View Payment Method Data renders the loading page when payme "padding": 0, }, undefined, - undefined, ] } > @@ -5974,7 +5969,6 @@ exports[`BuildQuote View Payment Method Data renders the loading page when payme "padding": 0, }, undefined, - undefined, ] } > @@ -7374,7 +7368,6 @@ exports[`BuildQuote View Regions data renders the loading page when regions are "padding": 0, }, undefined, - undefined, ] } > @@ -7564,7 +7557,6 @@ exports[`BuildQuote View Regions data renders the loading page when regions are "padding": 0, }, undefined, - undefined, ] } > @@ -8511,7 +8503,6 @@ exports[`BuildQuote View renders correctly 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -8842,7 +8833,6 @@ exports[`BuildQuote View renders correctly 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -9137,7 +9127,6 @@ exports[`BuildQuote View renders correctly 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -11620,7 +11609,6 @@ exports[`BuildQuote View renders correctly 2`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -11951,7 +11939,6 @@ exports[`BuildQuote View renders correctly 2`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -12094,7 +12081,6 @@ exports[`BuildQuote View renders correctly 2`] = ` "padding": 0, }, undefined, - undefined, ] } > diff --git a/app/components/UI/Ramp/Views/OrderDetails/__snapshots__/OrderDetails.test.tsx.snap b/app/components/UI/Ramp/Views/OrderDetails/__snapshots__/OrderDetails.test.tsx.snap index 88387a8f98c..6ab703e40da 100644 --- a/app/components/UI/Ramp/Views/OrderDetails/__snapshots__/OrderDetails.test.tsx.snap +++ b/app/components/UI/Ramp/Views/OrderDetails/__snapshots__/OrderDetails.test.tsx.snap @@ -585,7 +585,6 @@ exports[`OrderDetails renders a cancelled order 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -2083,7 +2082,6 @@ exports[`OrderDetails renders a completed order 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -3595,7 +3593,6 @@ exports[`OrderDetails renders a created order 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -5023,7 +5020,6 @@ exports[`OrderDetails renders a failed order 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -6535,7 +6531,6 @@ exports[`OrderDetails renders a pending order 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -9070,7 +9065,6 @@ exports[`OrderDetails renders non-transacted orders 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -10609,7 +10603,6 @@ exports[`OrderDetails renders the support links if the provider has them 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -12141,7 +12134,6 @@ exports[`OrderDetails renders transacted orders that do not have timeDescription "padding": 0, }, undefined, - undefined, ] } > @@ -13616,7 +13608,6 @@ exports[`OrderDetails renders transacted orders that have timeDescriptionPending "padding": 0, }, undefined, - undefined, ] } > diff --git a/app/components/UI/Ramp/Views/PaymentMethods/__snapshots__/PaymentMethods.test.tsx.snap b/app/components/UI/Ramp/Views/PaymentMethods/__snapshots__/PaymentMethods.test.tsx.snap index e5a9d3b334f..2e25a8d696d 100644 --- a/app/components/UI/Ramp/Views/PaymentMethods/__snapshots__/PaymentMethods.test.tsx.snap +++ b/app/components/UI/Ramp/Views/PaymentMethods/__snapshots__/PaymentMethods.test.tsx.snap @@ -495,7 +495,6 @@ exports[`PaymentMethods View renders correctly 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -781,7 +780,6 @@ exports[`PaymentMethods View renders correctly 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -1084,7 +1082,6 @@ exports[`PaymentMethods View renders correctly 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -1945,7 +1942,6 @@ exports[`PaymentMethods View renders correctly for sell 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -2231,7 +2227,6 @@ exports[`PaymentMethods View renders correctly for sell 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -2534,7 +2529,6 @@ exports[`PaymentMethods View renders correctly for sell 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -3391,7 +3385,6 @@ exports[`PaymentMethods View renders correctly while loading 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -3641,7 +3634,6 @@ exports[`PaymentMethods View renders correctly while loading 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -3893,7 +3885,6 @@ exports[`PaymentMethods View renders correctly while loading 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -6591,7 +6582,6 @@ exports[`PaymentMethods View renders correctly with null data 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -6841,7 +6831,6 @@ exports[`PaymentMethods View renders correctly with null data 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -7093,7 +7082,6 @@ exports[`PaymentMethods View renders correctly with null data 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -7823,7 +7811,6 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim "padding": 0, }, undefined, - undefined, ] } > @@ -8109,7 +8096,6 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim "padding": 0, }, undefined, - undefined, ] } > @@ -8412,7 +8398,6 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim "padding": 0, }, undefined, - undefined, ] } > @@ -9964,7 +9949,6 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = "padding": 0, }, undefined, - undefined, ] } > @@ -10250,7 +10234,6 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = "padding": 0, }, undefined, - undefined, ] } > @@ -10553,7 +10536,6 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = "padding": 0, }, undefined, - undefined, ] } > diff --git a/app/components/UI/Ramp/Views/Quotes/__snapshots__/Quotes.test.tsx.snap b/app/components/UI/Ramp/Views/Quotes/__snapshots__/Quotes.test.tsx.snap index 97f6fd0365a..3ad1e4f304e 100644 --- a/app/components/UI/Ramp/Views/Quotes/__snapshots__/Quotes.test.tsx.snap +++ b/app/components/UI/Ramp/Views/Quotes/__snapshots__/Quotes.test.tsx.snap @@ -35,7 +35,6 @@ exports[`LoadingQuotes component renders correctly 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -277,7 +276,6 @@ exports[`LoadingQuotes component renders correctly 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -416,7 +414,6 @@ exports[`LoadingQuotes component renders correctly 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -3546,7 +3543,6 @@ exports[`Quotes renders correctly after animation with quotes 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -3819,7 +3815,6 @@ exports[`Quotes renders correctly after animation with quotes 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -5023,7 +5018,6 @@ exports[`Quotes renders correctly after animation with quotes and expanded 2`] = "padding": 0, }, undefined, - undefined, ] } > @@ -5296,7 +5290,6 @@ exports[`Quotes renders correctly after animation with quotes and expanded 2`] = "padding": 0, }, undefined, - undefined, ] } > @@ -5596,7 +5589,6 @@ exports[`Quotes renders correctly after animation with quotes and expanded 2`] = "padding": 0, }, undefined, - undefined, ] } > diff --git a/app/components/UI/Ramp/Views/Regions/__snapshots__/Regions.test.tsx.snap b/app/components/UI/Ramp/Views/Regions/__snapshots__/Regions.test.tsx.snap index cffaf29508d..d181f8b8542 100644 --- a/app/components/UI/Ramp/Views/Regions/__snapshots__/Regions.test.tsx.snap +++ b/app/components/UI/Ramp/Views/Regions/__snapshots__/Regions.test.tsx.snap @@ -566,7 +566,6 @@ exports[`Regions View renders correctly 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -1346,7 +1345,6 @@ exports[`Regions View renders correctly while loading 1`] = ` undefined, undefined, undefined, - undefined, ] } > @@ -2575,7 +2573,6 @@ exports[`Regions View renders correctly with no data 1`] = ` undefined, undefined, undefined, - undefined, ] } > @@ -3825,7 +3822,6 @@ exports[`Regions View renders correctly with selectedRegion 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -4624,7 +4620,6 @@ exports[`Regions View renders correctly with unsupportedRegion 1`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -4949,7 +4944,6 @@ exports[`Regions View renders correctly with unsupportedRegion 1`] = ` undefined, undefined, undefined, - undefined, { "backgroundColor": "#ffffff", "borderWidth": 0, @@ -5799,7 +5793,6 @@ exports[`Regions View renders correctly with unsupportedRegion 2`] = ` "padding": 0, }, undefined, - undefined, ] } > @@ -6124,7 +6117,6 @@ exports[`Regions View renders correctly with unsupportedRegion 2`] = ` undefined, undefined, undefined, - undefined, { "backgroundColor": "#ffffff", "borderWidth": 0, @@ -6974,7 +6966,6 @@ exports[`Regions View renders regions modal when pressing select button 1`] = ` "padding": 0, }, undefined, - undefined, ] } > diff --git a/app/components/UI/Ramp/components/Box.tsx b/app/components/UI/Ramp/components/Box.tsx index 54eb1b9cd0e..41974701101 100644 --- a/app/components/UI/Ramp/components/Box.tsx +++ b/app/components/UI/Ramp/components/Box.tsx @@ -21,9 +21,6 @@ const createStyles = (colors: Colors) => label: { marginVertical: 8, }, - noBorder: { - borderWidth: 0, - }, highlighted: { borderColor: colors.primary.default, }, @@ -41,7 +38,6 @@ interface Props { style?: StyleProp; thin?: boolean; activeOpacity?: number; - noBorder?: boolean; // TODO: Replace "any" with type // eslint-disable-next-line @typescript-eslint/no-explicit-any onPress?: () => any; @@ -60,7 +56,6 @@ const Box: React.FC = ({ accessible, accessibilityLabel, compact, - noBorder, ...props }: Props) => { const { colors } = useTheme(); @@ -82,7 +77,6 @@ const Box: React.FC = ({ thin && styles.thin, highlighted && styles.highlighted, compact && styles.compact, - noBorder && styles.noBorder, style, ]} {...props}