Commit 1de172f5 by G

somehow forgot to commit all of those...

parent 89166354
{
"expo": {
"name": "beasy-mobile",
"slug": "beasy-mobile",
"slug": "barnoinpay-tpe",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/beasy_icon.png",
......@@ -54,7 +54,7 @@
],
"extra": {
"eas": {
"projectId": "5fb441c9-b1c8-4a96-a132-3295cd732a55"
"projectId": "7cec043f-3c93-4935-9880-8a0248135d0c"
}
},
"runtimeVersion": {
......@@ -62,6 +62,7 @@
},
"updates": {
"url": "https://u.expo.dev/5fb441c9-b1c8-4a96-a132-3295cd732a55"
}
},
"owner": "barnoin-informatique"
}
}
......@@ -5,6 +5,9 @@
},
"build": {
"development": {
"env": {
"EXPO_PUBLIC_API_URL": "http://192.168.1.223:8001"
},
"developmentClient": true,
"distribution": "internal",
"channel": "development"
......
......@@ -75,7 +75,7 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith
paymentTypesWithActiveStatus.map((paymentType) => (
<PaymentOptionContainer key={paymentType.id}>
<PaymentOption
key={paymentType.id}
// key={paymentType.id}
onPress={() =>
navigation.navigate(
"paymentAmountInputScreen",
......
import { type configLoggerType, consoleTransport, logger } from "react-native-logs";
import { consoleTransport, logger } from "react-native-logs";
const levels = {
error: 6,
......@@ -10,30 +10,25 @@ const levels = {
silly: 0,
};
const colors = {
error: "redBright",
warn: "yellowBright",
info: "whiteBright",
http: "blueBright",
verbose: "cyanBright",
debug: "greenBright",
silly: "magentaBright",
};
const defaultConfig: configLoggerType = {
const LOG = logger.createLogger({
levels,
severity: "silly",
transport: consoleTransport,
transportOptions: {
colors,
colors: {
error: "redBright",
warn: "yellowBright",
info: "whiteBright",
http: "blueBright",
verbose: "cyanBright",
debug: "greenBright",
silly: "magentaBright",
},
},
async: true,
dateFormat: "iso",
printLevel: true,
printDate: true,
enabled: true,
};
const LOG = logger.createLogger<keyof typeof levels>(defaultConfig);
});
export { LOG };
......@@ -8,7 +8,7 @@ const log = LOG.extend("authenticateUser");
const authenticateUser = async ({ username, password }: { username: string; password: string }) => {
log.http({ username, password });
const response = await axiosRequest<IauthenticationData>({
url: "/api/token/",
url: "/login/token/",
method: "POST",
data: {
username: username,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment