Skip to content

Commit

Permalink
chore: fix-code
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Mar 11, 2024
1 parent ea72f7e commit e825285
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import Animated, {
withSpring,
} from "react-native-reanimated"

import { Text, makeStyles, useTheme } from "@rneui/themed"
import { testProps } from "@app/utils/testProps"
import { Text, makeStyles, useTheme } from "@rneui/themed"

import { GaloyIcon } from "../galoy-icon"

Expand Down
2 changes: 1 addition & 1 deletion app/components/balance-header/balance-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import {
toBtcMoneyAmount,
toUsdMoneyAmount,
} from "@app/types/amounts"
import { makeStyles, Text } from "@rneui/themed"
import { testProps } from "@app/utils/testProps"
import { makeStyles, Text } from "@rneui/themed"

const Loader = () => {
const styles = useStyles()
Expand Down
2 changes: 1 addition & 1 deletion app/screens/conversion-flow/conversion-details-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import {
toUsdMoneyAmount,
toWalletAmount,
} from "@app/types/amounts"
import { testProps } from "@app/utils/testProps"
import { NavigationProp, useNavigation } from "@react-navigation/native"
import { makeStyles, Text, useTheme } from "@rneui/themed"
import { testProps } from "@app/utils/testProps"

gql`
query conversionScreen {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from "@app/components/success-animation"
import { setFeedbackModalShown } from "@app/graphql/client-only-query"
import { useFeedbackModalShownQuery } from "@app/graphql/generated"
import { useAppConfig } from "@app/hooks"
import { useI18nContext } from "@app/i18n/i18n-react"
import { RootStackParamList } from "@app/navigation/stack-param-lists"
import { logAppFeedback } from "@app/utils/analytics"
Expand All @@ -25,7 +26,6 @@ import {
} from "../transaction-detail-screen/format-time"
import { SuggestionModal } from "./suggestion-modal"
import { PaymentSendCompletedStatus } from "./use-send-payment"
import { useAppConfig } from "@app/hooks"

type Props = {
route: RouteProp<RootStackParamList, "sendBitcoinCompleted">
Expand Down
2 changes: 1 addition & 1 deletion app/screens/settings-screen/account-id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { View } from "react-native"
import { GaloyIconButton } from "@app/components/atomic/galoy-icon-button"
import { useAccountScreenQuery } from "@app/graphql/generated"
import { useI18nContext } from "@app/i18n/i18n-react"
import { testProps } from "@app/utils/testProps"
import { toastShow } from "@app/utils/toast"
import Clipboard from "@react-native-clipboard/clipboard"
import { Text, makeStyles } from "@rneui/themed"
import { testProps } from "@app/utils/testProps"

export const AccountId: React.FC = () => {
const { data } = useAccountScreenQuery()
Expand Down
2 changes: 1 addition & 1 deletion app/screens/settings-screen/account-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ import useLogout from "@app/hooks/use-logout"
import { useI18nContext } from "@app/i18n/i18n-react"
import { RootStackParamList } from "@app/navigation/stack-param-lists"
import { toBtcMoneyAmount, toUsdMoneyAmount } from "@app/types/amounts"
import { testProps } from "@app/utils/testProps"
import { useNavigation } from "@react-navigation/native"
import { StackNavigationProp } from "@react-navigation/stack"
import { Text, makeStyles, useTheme } from "@rneui/themed"

import { AccountId } from "./account-id"
import { SettingsRow } from "./settings-row"
import { useShowWarningSecureAccount } from "./show-warning-secure-account"
import { testProps } from "@app/utils/testProps"

gql`
query accountScreen {
Expand Down
7 changes: 2 additions & 5 deletions e2e/detox/01-auth.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import "detox"

import { timeout, ALICE_PHONE, ALICE_EMAIL, otp } from "./utils/config"

import { TranslationFunctions } from "../../app/i18n/i18n-types"
import { i18nObject } from "../../app/i18n/i18n-util"
import { loadLocale } from "../../app/i18n/i18n-util.sync"

import { getKratosCode } from "./utils/commandline"

import { tap } from "./utils/controls"
import { waitForAccountScreen } from "./utils/common-flows"
import { timeout, ALICE_PHONE, ALICE_EMAIL, otp } from "./utils/config"
import { tap } from "./utils/controls"

export const setLocalEnvironment = async () => {
const buildBtn = element(by.id("logo-button"))
Expand Down
6 changes: 2 additions & 4 deletions e2e/detox/02-conversion.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import "detox"

import { timeout, ALICE_USERNAME, ALICE_TOKEN } from "./utils/config"

import { i18nObject } from "../../app/i18n/i18n-util"
import { loadLocale } from "../../app/i18n/i18n-util.sync"

import { tap, verifyTextPresent } from "./utils/controls"
import { waitForHomeScreen, setLocalAndLoginWithAccessToken } from "./utils/common-flows"
import { timeout, ALICE_USERNAME, ALICE_TOKEN } from "./utils/config"
import { tap, verifyTextPresent } from "./utils/controls"

describe("Intraledger Flow", () => {
loadLocale("en")
Expand Down
8 changes: 3 additions & 5 deletions e2e/detox/03-payment-send.test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import "detox"

import { timeout, BOB_USERNAME, ALICE_TOKEN } from "./utils/config"

import { i18nObject } from "../../app/i18n/i18n-util"
import { loadLocale } from "../../app/i18n/i18n-util.sync"

import { addAmount, tap, verifyTextPresent, sleep, slideSlider } from "./utils/controls"
import { setLocalAndLoginWithAccessToken, waitForHomeScreen } from "./utils/common-flows"
import {
getExternalLNNoAmountInvoice,
getLnInvoiceForBob,
getOnchainAddress,
} from "./utils/commandline"
import { setLocalAndLoginWithAccessToken, waitForHomeScreen } from "./utils/common-flows"
import { timeout, BOB_USERNAME, ALICE_TOKEN } from "./utils/config"
import { addAmount, tap, verifyTextPresent, sleep, slideSlider } from "./utils/controls"

loadLocale("en")
const LL = i18nObject("en")
Expand Down
2 changes: 1 addition & 1 deletion e2e/detox/utils/commandline.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path"
import { exec } from "child_process"
import path from "path"

const REPO_ROOT = path.join(__dirname, "../../..")

Expand Down
1 change: 0 additions & 1 deletion e2e/detox/utils/common-flows.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { TranslationFunctions } from "../../../app/i18n/i18n-types"

import { timeout } from "./config"
import { tap } from "./controls"

Expand Down
3 changes: 2 additions & 1 deletion e2e/detox/utils/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from "path"
import { config } from "dotenv"
import path from "path"

config({ path: path.join(__dirname, "../../../dev/.env.tmp.ci") })

if (!process.env.ALICE_PHONE || !process.env.BOB_PHONE) {
Expand Down

0 comments on commit e825285

Please sign in to comment.