Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-mobile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
G
beasy-mobile
Commits
209a1ea6
Commit
209a1ea6
authored
Sep 11, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using the card component
parent
cae3b53d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
BalanceContainer.tsx
src/components/BalanceContainer.tsx
+5
-16
No files found.
src/components/BalanceContainer.tsx
View file @
209a1ea6
import
Box
from
"@components/bases/Box"
;
import
Box
from
"@components/bases/Box"
;
import
Text
from
"@components/bases/Text"
;
import
Text
from
"@components/bases/Text"
;
import
Card
from
"@re-card"
;
import
{
images
}
from
"@styles/Commons"
;
import
{
images
}
from
"@styles/Commons"
;
import
*
as
LocalAuthentication
from
"expo-local-authentication"
;
import
*
as
LocalAuthentication
from
"expo-local-authentication"
;
import
{
useState
}
from
"react"
;
import
{
useState
}
from
"react"
;
...
@@ -23,25 +24,13 @@ const BalanceContainer = ({ label, balance }: Props) => {
...
@@ -23,25 +24,13 @@ const BalanceContainer = ({ label, balance }: Props) => {
};
};
return
(
return
(
<
Box
<
Card
position=
{
"relative"
}
variant=
{
"balanceContainer"
}
>
position=
{
"relative"
}
<
Card
variant=
{
"balanceContainer"
}
position=
{
"absolute"
}
>
width=
{
300
}
height=
{
130
}
alignItems=
{
"center"
}
justifyContent=
{
"center"
}
>
<
Box
width=
{
300
}
height=
{
130
}
borderRadius=
{
10
}
overflow=
{
"hidden"
}
position=
{
"absolute"
}
>
<
Image
<
Image
source=
{
require
(
"../../assets/balance_container.png"
)
}
source=
{
require
(
"../../assets/balance_container.png"
)
}
style=
{
images
.
cover
}
style=
{
images
.
cover
}
/>
/>
</
Box
>
</
Card
>
<
Box
alignItems=
{
"center"
}
gap=
{
"s"
}
>
<
Box
alignItems=
{
"center"
}
gap=
{
"s"
}
>
<
TouchableOpacity
onPress=
{
handleLocalAuthentication
}
>
<
TouchableOpacity
onPress=
{
handleLocalAuthentication
}
>
...
@@ -63,7 +52,7 @@ const BalanceContainer = ({ label, balance }: Props) => {
...
@@ -63,7 +52,7 @@ const BalanceContainer = ({ label, balance }: Props) => {
<
Text
color=
{
"gray"
}
>
{
label
}
</
Text
>
<
Text
color=
{
"gray"
}
>
{
label
}
</
Text
>
</
Box
>
</
Box
>
</
Box
>
</
Card
>
);
);
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment