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
b8bbb0ed
Commit
b8bbb0ed
authored
Sep 09, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed imports for types. Types -> types
parent
ab833533
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
32 deletions
+31
-32
PaymentOption.tsx
src/components/PaymentOption.tsx
+1
-1
TransactionInformationsItem.tsx
src/components/TransactionInformationsItem.tsx
+1
-1
Types.ts
src/navigations/Types.ts
+1
-1
logger.ts
src/utils/logger.ts
+28
-29
No files found.
src/components/PaymentOption.tsx
View file @
b8bbb0ed
import
type
{
PaymentCode
}
from
"@/utils/requests/
T
ypes"
;
import
type
{
PaymentCode
}
from
"@/utils/requests/
t
ypes"
;
import
{
images
}
from
"@styles/Commons"
;
import
{
Image
,
TouchableOpacity
}
from
"react-native"
;
import
Box
from
"./bases/Box"
;
...
...
src/components/TransactionInformationsItem.tsx
View file @
b8bbb0ed
import
type
{
PaymentCode
}
from
"@/utils/requests/
T
ypes"
;
import
type
{
PaymentCode
}
from
"@/utils/requests/
t
ypes"
;
import
moment
from
"moment"
;
import
"moment/locale/fr"
;
import
PaymentOption
from
"./PaymentOption"
;
...
...
src/navigations/Types.ts
View file @
b8bbb0ed
import
type
{
PaymentCode
}
from
"@/utils/requests/
T
ypes"
;
import
type
{
PaymentCode
}
from
"@/utils/requests/
t
ypes"
;
import
type
{
IwaveStarterRespone
}
from
"@/utils/requests/wavePayment"
;
import
type
{
NativeStackScreenProps
}
from
"@react-navigation/native-stack"
;
...
...
src/utils/logger.ts
View file @
b8bbb0ed
import
{
configLoggerType
,
consoleTransport
,
logger
}
from
"react-native-logs"
;
import
{
type
configLoggerType
,
consoleTransport
,
logger
}
from
"react-native-logs"
;
const
levels
=
{
error
:
6
,
warn
:
5
,
info
:
4
,
http
:
3
,
verbose
:
2
,
debug
:
1
,
silly
:
0
error
:
6
,
warn
:
5
,
info
:
4
,
http
:
3
,
verbose
:
2
,
debug
:
1
,
silly
:
0
,
};
const
colors
=
{
error
:
"redBright"
,
warn
:
"yellowBright"
,
info
:
"whiteBright"
,
http
:
"blueBright"
,
verbose
:
"cyanBright"
,
debug
:
"greenBright"
,
silly
:
"magentaBright"
error
:
"redBright"
,
warn
:
"yellowBright"
,
info
:
"whiteBright"
,
http
:
"blueBright"
,
verbose
:
"cyanBright"
,
debug
:
"greenBright"
,
silly
:
"magentaBright"
,
};
const
defaultConfig
:
configLoggerType
=
{
levels
,
severity
:
"silly"
,
transport
:
consoleTransport
,
transportOptions
:
{
colors
},
async
:
true
,
dateFormat
:
"iso"
,
printLevel
:
true
,
printDate
:
true
,
enabled
:
true
,
}
const
defaultConfig
:
configLoggerType
=
{
levels
,
severity
:
"silly"
,
transport
:
consoleTransport
,
transportOptions
:
{
colors
,
},
async
:
true
,
dateFormat
:
"iso"
,
printLevel
:
true
,
printDate
:
true
,
enabled
:
true
,
};
const
LOG
=
logger
.
createLogger
<
keyof
typeof
levels
>
(
defaultConfig
);
...
...
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