-
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.
✨ app: implement empty state for payments
- Loading branch information
1 parent
a2b6173
commit 03e15d7
Showing
3 changed files
with
78 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@exactly/mobile": patch | ||
--- | ||
|
||
✨ implement empty state for payments screen |
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,33 @@ | ||
import React from "react"; | ||
import { StyleSheet } from "react-native"; | ||
import { YStack } from "tamagui"; | ||
|
||
import Blob from "../../assets/images/exa-card-blob.svg"; | ||
import ExaCard from "../../assets/images/exa-card.svg"; | ||
import Text from "../shared/Text"; | ||
import View from "../shared/View"; | ||
|
||
export default function Empty() { | ||
return ( | ||
<View fullScreen padding="$s5" alignItems="center" justifyContent="center" backgroundColor="$backgroundSoft"> | ||
<YStack gap="$s6" alignItems="center" justifyContent="center"> | ||
<View width="100%" aspectRatio={1} justifyContent="center" alignItems="center"> | ||
<View width="100%" height="100%"> | ||
<Blob width="100%" height="100%" /> | ||
</View> | ||
<View width="100%" height="100%" style={StyleSheet.absoluteFillObject}> | ||
<ExaCard width="100%" height="100%" /> | ||
</View> | ||
</View> | ||
<YStack alignItems="center" justifyContent="center" gap="$s6"> | ||
<Text emphasized title color="$interactiveTextBrandDefault" textAlign="center"> | ||
No payments pending | ||
</Text> | ||
<Text footnote secondary textAlign="center"> | ||
You're all caught up! Start using your card to see payments listed here. | ||
</Text> | ||
</YStack> | ||
</YStack> | ||
</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