-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
642f9cf
commit 729468c
Showing
5 changed files
with
181 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "../../../components/activity/ActivityDetails"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
import React from "react"; | ||
|
||
import View from "../shared/View"; | ||
import SafeView from "../shared/SafeView"; | ||
import { Pressable } from "react-native"; | ||
import { router } from "expo-router"; | ||
import { ms } from "react-native-size-matters"; | ||
import { ArrowLeft, ArrowUpFromLine } from "@tamagui/lucide-icons"; | ||
import { Separator, Square, styled, XStack, YStack } from "tamagui"; | ||
import { LinearGradient } from "expo-linear-gradient"; | ||
import Text from "../shared/Text"; | ||
|
||
const StyledGradient = styled(LinearGradient, {}); | ||
|
||
const action = "Paid"; | ||
const amount = 2333.0; | ||
const amountUSD = "$2.333,14"; | ||
const merchant = "Apple Inc."; | ||
const activity = "Purchase"; | ||
|
||
export default function ActivityDetails() { | ||
const { canGoBack } = router; | ||
return ( | ||
<View fullScreen backgroundColor="$backgroundSoft"> | ||
<StyledGradient | ||
colors={["$backgroundSoft", "transparent"]} | ||
position="absolute" | ||
top={0} | ||
left={0} | ||
right={0} | ||
height={300} | ||
/> | ||
<SafeView backgroundColor="transparent"> | ||
<View fullScreen padded> | ||
<View gap={ms(20)}> | ||
<View flexDirection="row" gap={ms(10)} justifyContent="space-between" alignItems="center"> | ||
{canGoBack() && ( | ||
<Pressable | ||
onPress={() => { | ||
router.back(); | ||
}} | ||
> | ||
<ArrowLeft size={ms(24)} color="$uiNeutralPrimary" /> | ||
</Pressable> | ||
)} | ||
</View> | ||
|
||
<YStack gap="$s7" paddingBottom="$s9"> | ||
<XStack justifyContent="center" alignItems="center"> | ||
<Square borderRadius="$r4" backgroundColor="$backgroundStrong" size={80}> | ||
<ArrowUpFromLine size={ms(32)} color="$iconBrandDefault" strokeWidth={2} /> | ||
</Square> | ||
</XStack> | ||
<YStack gap="$s4_5" justifyContent="center" alignItems="center"> | ||
<Text secondary body> | ||
{action} | ||
<Text emphasized primary body> | ||
{merchant} | ||
</Text> | ||
</Text> | ||
<Text title>{amountUSD}</Text> | ||
<XStack> | ||
<Text title>{amount} USDC</Text> | ||
</XStack> | ||
</YStack> | ||
</YStack> | ||
|
||
<YStack gap="$s4"> | ||
<YStack gap="$s4"> | ||
<Text emphasized headline> | ||
{activity} details | ||
</Text> | ||
<Separator height={1} borderColor="$borderNeutralSoft" /> | ||
</YStack> | ||
<YStack gap="$s3_5"> | ||
<XStack justifyContent="space-between"> | ||
<Text body color="$uiNeutralPrimary"> | ||
Total | ||
</Text> | ||
<Text body color="$uiNeutralPrimary"> | ||
{amountUSD} | ||
</Text> | ||
</XStack> | ||
<XStack justifyContent="space-between"> | ||
<Text body color="$uiNeutralPrimary"> | ||
Installments | ||
</Text> | ||
<Text body color="$uiNeutralPrimary"> | ||
6x {amount / 6} | ||
</Text> | ||
</XStack> | ||
<XStack justifyContent="space-between"> | ||
<Text body color="$uiNeutralPrimary"> | ||
Card mode | ||
</Text> | ||
<Text body color="$uiNeutralPrimary"> | ||
Credit | ||
</Text> | ||
</XStack> | ||
<XStack justifyContent="space-between"> | ||
<Text body color="$uiNeutralPrimary"> | ||
Fixed rate APR | ||
</Text> | ||
<Text body color="$uiNeutralPrimary"> | ||
5,41% | ||
</Text> | ||
</XStack> | ||
<XStack justifyContent="space-between"> | ||
<Text body color="$uiNeutralPrimary"> | ||
ID | ||
</Text> | ||
<Text body color="$uiNeutralPrimary"> | ||
123456789 | ||
</Text> | ||
</XStack> | ||
</YStack> | ||
</YStack> | ||
|
||
<YStack gap="$s4"> | ||
<YStack gap="$s4"> | ||
<Text emphasized headline> | ||
{activity} details | ||
</Text> | ||
<Separator height={1} borderColor="$borderNeutralSoft" /> | ||
</YStack> | ||
<YStack gap="$s3_5"> | ||
<XStack justifyContent="space-between"> | ||
<Text body color="$uiNeutralPrimary"> | ||
Transaction details | ||
</Text> | ||
<Text body color="$uiNeutralPrimary"> | ||
{amountUSD} | ||
</Text> | ||
</XStack> | ||
<XStack justifyContent="space-between"> | ||
<Text body color="$uiNeutralPrimary"> | ||
Installments | ||
</Text> | ||
<Text body color="$uiNeutralPrimary"> | ||
6x {amount / 6} | ||
</Text> | ||
</XStack> | ||
<XStack justifyContent="space-between"> | ||
<Text body color="$uiNeutralPrimary"> | ||
Card mode | ||
</Text> | ||
<Text body color="$uiNeutralPrimary"> | ||
Credit | ||
</Text> | ||
</XStack> | ||
<XStack justifyContent="space-between"> | ||
<Text body color="$uiNeutralPrimary"> | ||
Fixed rate APR | ||
</Text> | ||
<Text body color="$uiNeutralPrimary"> | ||
5,41% | ||
</Text> | ||
</XStack> | ||
<XStack justifyContent="space-between"> | ||
<Text body color="$uiNeutralPrimary"> | ||
ID | ||
</Text> | ||
<Text body color="$uiNeutralPrimary"> | ||
123456789 | ||
</Text> | ||
</XStack> | ||
</YStack> | ||
</YStack> | ||
</View> | ||
</View> | ||
</SafeView> | ||
</View> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters