refactor: standardize quote styles to single quotes across all files
This commit is contained in:
@@ -23,9 +23,9 @@ export interface Offer {
|
||||
|
||||
export const createParticipant = async (participant: Participant) => {
|
||||
const response = await fetch(`${import.meta.env.VITE_APP_API_URL}/register`, {
|
||||
method: "POST",
|
||||
method: 'POST',
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
chainID: participant.chainID,
|
||||
@@ -49,13 +49,13 @@ export const createParticipant = async (participant: Participant) => {
|
||||
|
||||
export const createSolicitation = async (offer: Offer) => {
|
||||
const response = await fetch(`${import.meta.env.VITE_APP_API_URL}/request`, {
|
||||
method: "POST",
|
||||
method: 'POST',
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
amount: offer.amount,
|
||||
pixTarget: offer.sellerId.split("-").pop(),
|
||||
pixTarget: offer.sellerId.split('-').pop(),
|
||||
}),
|
||||
});
|
||||
return response.json();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export const decimalCount = (numStr: string): number => {
|
||||
if (numStr.includes(".")) {
|
||||
return numStr.split(".")[1].length;
|
||||
if (numStr.includes('.')) {
|
||||
return numStr.split('.')[1].length;
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { TokenEnum } from "@/model/NetworkEnum";
|
||||
import { Networks } from "@/config/networks";
|
||||
import type { TokenEnum } from '@/model/NetworkEnum';
|
||||
import { Networks } from '@/config/networks';
|
||||
|
||||
export const getNetworkImage = (networkName: string): string => {
|
||||
const normalizedName = networkName.toLowerCase().replace(/[^a-z0-9]/g, "-");
|
||||
const normalizedName = networkName.toLowerCase().replace(/[^a-z0-9]/g, '-');
|
||||
return new URL(`../assets/networks/${normalizedName}.svg`, import.meta.url)
|
||||
.href;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ValidDeposit } from "@/model/ValidDeposit";
|
||||
import type { Address } from "viem";
|
||||
import type { ValidDeposit } from '@/model/ValidDeposit';
|
||||
import type { Address } from 'viem';
|
||||
|
||||
const verifyNetworkLiquidity = (
|
||||
tokenValue: number,
|
||||
|
||||
@@ -11,6 +11,6 @@ export const pixFormatValidation = (pixKey: string): boolean => {
|
||||
};
|
||||
|
||||
export const postProcessKey = (pixKey: string): string => {
|
||||
pixKey = pixKey.replace(/[-.()/]/g, "");
|
||||
pixKey = pixKey.replace(/[-.()/]/g, '');
|
||||
return pixKey;
|
||||
};
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import type { AppVersion } from "@/model/AppVersion";
|
||||
import type { AppVersion } from '@/model/AppVersion';
|
||||
|
||||
export const appVersions: AppVersion[] = [
|
||||
{
|
||||
tag: "1.1.0",
|
||||
ipfsHash: "bafybeiaffdxrxoex3qh7kirnkkufnvpafb4gmkt7mjxufnnpbrq6tmqoha",
|
||||
releaseDate: "2025-11-06",
|
||||
description: "Explorer and versioning features added",
|
||||
tag: '1.1.0',
|
||||
ipfsHash: 'bafybeiaffdxrxoex3qh7kirnkkufnvpafb4gmkt7mjxufnnpbrq6tmqoha',
|
||||
releaseDate: '2025-11-06',
|
||||
description: 'Explorer and versioning features added',
|
||||
},
|
||||
{
|
||||
tag: "1.0.0",
|
||||
ipfsHash: "bafybeiagfqnxnb5zdrks6dicfm7kxjdtzzzzm2ouluxgdseg2hrrotayzi",
|
||||
releaseDate: "2023-01-28",
|
||||
description: "Initial release",
|
||||
tag: '1.0.0',
|
||||
ipfsHash: 'bafybeiagfqnxnb5zdrks6dicfm7kxjdtzzzzm2ouluxgdseg2hrrotayzi',
|
||||
releaseDate: '2023-01-28',
|
||||
description: 'Initial release',
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user