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
29387b99
Commit
29387b99
authored
Sep 11, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed again since i'll need a folder named wrapper
parent
1c8d78b3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
36 deletions
+21
-36
BackgroundWithBeasyIconAndWhiteContentArea.tsx
...ackgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx
+1
-1
BeasyDefaultBackground.tsx
src/components/backgrounds/BeasyDefaultBackground.tsx
+3
-6
HomePageWithPaymentOptions.tsx
src/screens/HomePageWithPaymentOptions.tsx
+14
-26
PaymentAmountInputScreen.tsx
src/screens/PaymentAmountInputScreen.tsx
+1
-1
PaymentResultScreen.tsx
src/screens/PaymentResultScreen.tsx
+1
-1
UserLoginScreen.tsx
src/screens/UserLoginScreen.tsx
+1
-1
No files found.
src/components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx
View file @
29387b99
...
...
@@ -4,7 +4,7 @@ import WrapperTopEdgeCurved from "@components/WrapperTopEdgeCurved";
import
Box
from
"@components/bases/Box"
;
import
{
useNavigation
}
from
"@react-navigation/native"
;
import
type
{
ReactElement
}
from
"react"
;
import
BackgroundDefault
from
"./BeasyDefaultBackground
Wrapper
"
;
import
BackgroundDefault
from
"./BeasyDefaultBackground"
;
const
BackgroundWithBeasyIconAndWhiteContentArea
=
({
children
,
...
...
src/components/backgrounds/BeasyDefaultBackground
Wrapper
.tsx
→
src/components/backgrounds/BeasyDefaultBackground.tsx
View file @
29387b99
...
...
@@ -3,15 +3,12 @@ import { ImageBackground } from "react-native";
type
Props
=
{
children
:
React
.
ReactNode
};
const
B
ackgroundDefault
=
({
children
}:
Props
)
=>
{
const
B
easyDefaultBackground
=
({
children
}:
Props
)
=>
{
return
(
<
ImageBackground
source=
{
require
(
"../../../assets/background.png"
)
}
style=
{
images
.
background
}
>
<
ImageBackground
source=
{
require
(
"../../../assets/background.png"
)
}
style=
{
images
.
cover
}
>
{
children
}
</
ImageBackground
>
);
};
export
default
B
ackgroundDefault
;
export
default
B
easyDefaultBackground
;
src/screens/HomePageWithPaymentOptions.tsx
View file @
29387b99
import
type
{
PaymentStackScreenComponentProps
}
from
"@/navigations/Types"
;
import
getPaymentTypes
from
"@/utils/requests/getPaymentTypes"
;
import
BalanceContainer
from
"@components/BalanceContainer"
;
import
BeasyLogoIcon
from
"@components/BeasyLogoIcon"
;
import
NotificationIconButton
from
"@components/NotificationIconButton"
;
import
PaymentOption
from
"@components/PaymentOption"
;
import
BackgroundGreenWhiteContentArea
from
"@components/backgrounds/BackgroundGreenWhiteContentArea"
;
import
BarWithBeasyAndNotificationsIcon
from
"@components/BarWithBeasyAndNotificationsIcon"
;
import
Box
from
"@components/bases/Box"
;
import
Text
from
"@components/bases/Text"
;
import
{
LOG
}
from
"@logger"
;
import
{
useQuery
}
from
"@tanstack/react-query"
;
import
{
useMemo
}
from
"react"
;
...
...
@@ -37,28 +32,21 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith
);
return
(
<
BackgroundGreenWhiteContentArea
>
<
SafeAreaView
>
<
Box
style=
{
{
height
:
"100%"
}
}
>
<
Box
px=
{
"l"
}
flexDirection=
{
"row"
}
justifyContent=
{
"space-between"
}
alignItems=
{
"center"
}
>
<
BeasyLogoIcon
/>
<
NotificationIconButton
/>
</
Box
>
<
Box
height=
{
150
}
alignItems=
{
"center"
}
justifyContent=
{
"center"
}
>
// <BeasyDefaultBackgroundWrapper>
<
SafeAreaView
>
<
Box
style=
{
{
height
:
"100%"
}
}
>
<
BarWithBeasyAndNotificationsIcon
/>
{
/* <Box height={150} alignItems={"center"} justifyContent={"center"}>
<BalanceContainer balance={78000} label="Total des ventes" />
</
Box
>
<
Box
flex=
{
1
}
p=
{
"l"
}
>
</Box> */
}
{
/* <Box flex={1} p={"l"}>
<Box height={100}>
<Text fontSize={20} fontWeight={"bold"}>
Types de paiement
</Text>
</Box>
{
/* <Box flexDirection={"row"} justifyContent={"space-between"} mb={"s"}> */
}
<Box
flex={1}
flexDirection={"row"}
...
...
@@ -91,10 +79,10 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith
</PaymentOptionContainer>
))}
</Box>
</
Box
>
</
Box
>
</
SafeAreaView
>
</
BackgroundGreenWhiteContentArea
>
</Box>
*/
}
</
Box
>
</
SafeAreaView
>
// </BeasyDefaultBackgroundWrapper
>
);
};
...
...
src/screens/PaymentAmountInputScreen.tsx
View file @
29387b99
...
...
@@ -5,7 +5,7 @@ import Button from "@components/Button";
import
GoBackIconButton
from
"@components/GoBackIconButton"
;
import
InputWithTopLabel
from
"@components/InputWithTopLabel"
;
import
PaymentOption
from
"@components/PaymentOption"
;
import
BeasyDefaultBackgroundWrapper
from
"@components/backgrounds/BeasyDefaultBackground
Wrapper
"
;
import
BeasyDefaultBackgroundWrapper
from
"@components/backgrounds/BeasyDefaultBackground"
;
import
Box
from
"@components/bases/Box"
;
import
Text
from
"@components/bases/Text"
;
import
useOrangeMoney
from
"@hooks/useOrangeMoney"
;
...
...
src/screens/PaymentResultScreen.tsx
View file @
29387b99
...
...
@@ -2,7 +2,7 @@ import type { MainStackScreenComponentProps } from "@/navigations/Types";
import
BeasyLogoIcon
from
"@components/BeasyLogoIcon"
;
import
Button
from
"@components/Button"
;
import
GoBackIconButton
from
"@components/GoBackIconButton"
;
import
BeasyDefaultBackgroundWrapper
from
"@components/backgrounds/BeasyDefaultBackground
Wrapper
"
;
import
BeasyDefaultBackgroundWrapper
from
"@components/backgrounds/BeasyDefaultBackground"
;
import
Box
from
"@components/bases/Box"
;
import
Text
from
"@components/bases/Text"
;
import
CheckIcon
from
"@components/icons/CheckIcon"
;
...
...
src/screens/UserLoginScreen.tsx
View file @
29387b99
...
...
@@ -3,7 +3,7 @@ import type { MainStackScreenComponentProps } from "@/navigations/Types";
import
Button
from
"@components/Button"
;
import
ContainerBorderTopCurved
from
"@components/ContainerBorderTopCurved"
;
import
InputWithTopLabel
from
"@components/InputWithTopLabel"
;
import
BeasyDefaultBackgroundWrapper
from
"@components/backgrounds/BeasyDefaultBackground
Wrapper
"
;
import
BeasyDefaultBackgroundWrapper
from
"@components/backgrounds/BeasyDefaultBackground"
;
import
Box
from
"@components/bases/Box"
;
import
Text
from
"@components/bases/Text"
;
import
{
Fontisto
}
from
"@expo/vector-icons"
;
...
...
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