Skip to content

Commit

Permalink
fix export default
Browse files Browse the repository at this point in the history
  • Loading branch information
sviderock committed Dec 19, 2024
1 parent c3ba81b commit 930a919
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/swap/SwapScreenV2.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
getMultichainFeatures,
} from 'src/statsig'
import { StatsigFeatureGates } from 'src/statsig/types'
import SwapScreen from 'src/swap/SwapScreenV2'
import SwapScreenV2 from 'src/swap/SwapScreenV2'
import { swapStart } from 'src/swap/slice'
import { FetchQuoteResponse, Field } from 'src/swap/types'
import { NO_QUOTE_ERROR_MESSAGE } from 'src/swap/useSwapQuote'
Expand Down Expand Up @@ -171,7 +171,7 @@ const renderScreen = ({

const tree = render(
<Provider store={store}>
<MockedNavigator component={SwapScreen} params={{ fromTokenId, toTokenNetworkId }} />
<MockedNavigator component={SwapScreenV2} params={{ fromTokenId, toTokenNetworkId }} />
</Provider>
)
const [swapFromContainer, swapToContainer] = tree.getAllByTestId('SwapAmountInput')
Expand Down Expand Up @@ -1450,7 +1450,7 @@ describe('SwapScreen', () => {

update(
<Provider store={updatedStore}>
<MockedNavigator component={SwapScreen} />
<MockedNavigator component={SwapScreenV2} />
</Provider>
)

Expand Down Expand Up @@ -1499,7 +1499,7 @@ describe('SwapScreen', () => {

update(
<Provider store={updatedStore}>
<MockedNavigator component={SwapScreen} />
<MockedNavigator component={SwapScreenV2} />
</Provider>
)

Expand Down
2 changes: 1 addition & 1 deletion src/swap/SwapScreenV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function getNetworkFee(quote: QuoteResult | null): SwapFeeAmount | undefined {

type Props = NativeStackScreenProps<StackParamList, Screens.SwapScreenWithBack>

export function SwapScreenV2({ route }: Props) {
export default function SwapScreenV2({ route }: Props) {
const { t } = useTranslation()
const dispatch = useDispatch()
const allowCrossChainSwaps = getFeatureGate(StatsigFeatureGates.ALLOW_CROSS_CHAIN_SWAPS)
Expand Down

0 comments on commit 930a919

Please sign in to comment.