Commit b8bbb0ed by G

renamed imports for types. Types -> types

parent ab833533
import type { PaymentCode } from "@/utils/requests/Types";
import type { PaymentCode } from "@/utils/requests/types";
import { images } from "@styles/Commons";
import { Image, TouchableOpacity } from "react-native";
import Box from "./bases/Box";
......
import type { PaymentCode } from "@/utils/requests/Types";
import type { PaymentCode } from "@/utils/requests/types";
import moment from "moment";
import "moment/locale/fr";
import PaymentOption from "./PaymentOption";
......
import type { PaymentCode } from "@/utils/requests/Types";
import type { PaymentCode } from "@/utils/requests/types";
import type { IwaveStarterRespone } from "@/utils/requests/wavePayment";
import type { NativeStackScreenProps } from "@react-navigation/native-stack";
......
import { configLoggerType, consoleTransport, logger } from "react-native-logs";
import { type configLoggerType, consoleTransport, logger } from "react-native-logs";
const levels = {
error: 6,
......@@ -7,7 +7,7 @@ const levels = {
http: 3,
verbose: 2,
debug: 1,
silly: 0
silly: 0,
};
const colors = {
......@@ -17,23 +17,22 @@ const colors = {
http: "blueBright",
verbose: "cyanBright",
debug: "greenBright",
silly: "magentaBright"
silly: "magentaBright",
};
const defaultConfig : configLoggerType = {
const defaultConfig: configLoggerType = {
levels,
severity : "silly",
transport : consoleTransport,
transportOptions : {
colors
severity: "silly",
transport: consoleTransport,
transportOptions: {
colors,
},
async : true,
dateFormat : "iso",
printLevel : true,
printDate : true,
enabled : true,
}
async: true,
dateFormat: "iso",
printLevel: true,
printDate: true,
enabled: true,
};
const LOG = logger.createLogger<keyof typeof levels>(defaultConfig);
......
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