Skip to content

Commit

Permalink
chore(ops): update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoublejay committed Aug 21, 2023
1 parent 6c504b8 commit 3e3f5c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function WalletCreateRestoreSuccess({ route }: Props): JSX.Element {
}

async function discoverWalletAddresses(
data: WalletPersistenceDataI<EncryptedProviderData>
data: WalletPersistenceDataI<EncryptedProviderData>,
): Promise<void> {
const provider = await MnemonicEncrypted.initProvider(data, network, {
/**
Expand Down Expand Up @@ -87,13 +87,13 @@ export function WalletCreateRestoreSuccess({ route }: Props): JSX.Element {
<ThemedTextV2 style={tailwind("text-xl text-center font-semibold-v2")}>
{translate(
"screens/WalletCreateRestoreSuccess",
isWalletRestored ? "Wallet restored!" : "Wallet created!"
isWalletRestored ? "Wallet restored!" : "Wallet created!",
)}
</ThemedTextV2>
<ThemedTextV2 style={tailwind("text-center mt-2 font-normal-v2")}>
{translate(
"screens/WalletCreateRestoreSuccess",
"Access decentralized finance with Bitcoin-grade security, strength and immutability."
"Access decentralized finance with Bitcoin-grade security, strength and immutability.",
)}
</ThemedTextV2>
</View>
Expand All @@ -106,7 +106,7 @@ export function WalletCreateRestoreSuccess({ route }: Props): JSX.Element {
>
<Image
source={isWalletRestored ? CoinImageRestore : CoinImageCreate}
style={{ width: width, height: 332 }}
style={{ width: Number(width), height: 332 }}
/>
<View style={tailwind("px-12")}>
<ButtonV2
Expand All @@ -115,7 +115,7 @@ export function WalletCreateRestoreSuccess({ route }: Props): JSX.Element {
testID="continue_button"
label={translate(
"screens/WalletCreateRestoreSuccess",
"Continue"
"Continue",
)}
/>
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function LoansCarousel({
"bg-mono-light-v2-100": isLight,
},
{ "-mt-0.5": Platform.OS === "ios" },
{ "-mt-1": Platform.OS === "android" }
{ "-mt-1": Platform.OS === "android" },
)}
testID="loans_carousel"
>
Expand Down Expand Up @@ -146,7 +146,9 @@ export function LoansCarousel({
dismissModal={dismissModal}
/>
)}
renderItem={({ item }) => <View style={{ width }}>{item}</View>}
renderItem={({ item }) => (
<View style={{ width: Number(width) }}>{item}</View>
)}
showPagination
/>
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export function OnboardingCarousel(): JSX.Element {
}
paginationStyleItem={tailwind("h-1.5 w-1.5 mx-0.75")}
PaginationComponent={CarouselPagination}
renderItem={({ item }) => <View style={{ width }}>{item}</View>}
renderItem={({ item }) => (
<View style={{ width: Number(width) }}>{item}</View>
)}
showPagination
/>
);
Expand Down

0 comments on commit 3e3f5c2

Please sign in to comment.