Skip to content

Commit

Permalink
feat(llm): fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasWerey committed Jun 12, 2024
1 parent 6c0a74b commit 525a6e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const AddAccountDrawer = ({ isOpened, currency, onClose, reopenDrawer }: AddAcco
descriptionKey: "addAccountsModal.assetsScreen.add.description",
onPress: onClickAdd,
icon: <Icons.LedgerDevices color={"primary.c80"} />,
testID: "add-accounts-modal-add-button",
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react";
import Touchable from "~/components/Touchable";
import styled from "styled-components/native";

const Card = styled(Flex)`
const TouchableCard = styled(Touchable)`
background-color: ${p => p.theme.colors.opacityDefault.c05};
border-radius: 8px;
padding: 16px;
Expand All @@ -28,20 +28,18 @@ type AddAccountDrawerRowProps = {
title: string;
description?: string;
icon: React.ReactNode;
testID?: string;
onPress: React.ComponentProps<typeof Touchable>["onPress"];
};

const ActionRow = ({ title, description, icon, onPress }: AddAccountDrawerRowProps) => {
const ActionRow = ({ title, description, icon, testID, onPress }: AddAccountDrawerRowProps) => {
return (
<Touchable onPress={onPress}>
<Card>
{icon}
<Flex flexDirection={"column"} rowGap={4} flex={1}>
<CardTitle>{title}</CardTitle>
{description && <CardDescription>{description}</CardDescription>}
</Flex>
</Card>
</Touchable>
<TouchableCard onPress={onPress} testID={testID}>
{icon}
<Flex flexDirection={"column"} rowGap={4} flex={1}>
<CardTitle>{title}</CardTitle>
{description && <CardDescription>{description}</CardDescription>}
</Flex>
</TouchableCard>
);
};
export default ActionRow;

0 comments on commit 525a6e1

Please sign in to comment.