@@ -63,10 +53,7 @@ export const JsonForm = ({
type="submit"
value={!isLoading ? 'Check errors' : 'Loading...'}
disabled={isLoading}
- className={twMerge(
- 'w-full xs:w-[90%] sm:w-4/5 md:w-full lg:w-4/5',
- 'mt-4 mx-auto py-3 px-4 text-white bg-blueAirSwap border-darkgray border-1 rounded-sm font-medium text-lg uppercase'
- )}
+ className="w-full mt-4 mx-auto py-3 px-4 text-white bg-blueAirSwap border-darkgray border-1 rounded-sm font-medium text-lg uppercase"
/>
);
diff --git a/src/components/forms/UrlForm.tsx b/src/components/forms/UrlForm.tsx
index 6e21267..8d1ec2a 100644
--- a/src/components/forms/UrlForm.tsx
+++ b/src/components/forms/UrlForm.tsx
@@ -1,5 +1,4 @@
import { ChangeEvent, Dispatch, MouseEvent, SetStateAction } from 'react';
-import { twMerge } from 'tailwind-merge';
import { textareaUrlPlaceholder } from '../../placeholders/textareaUrlPlaceholder';
import { Dialog } from '../Dialog';
import { ParsedJsonParams } from '../../../types';
@@ -27,10 +26,7 @@ export const UrlForm = ({
type="submit"
value={!isLoading ? 'Check errors' : 'Loading...'}
disabled={isLoading}
- className={twMerge(
- 'w-full xs:w-[90%] sm:w-4/5 md:w-full lg:w-4/5',
- 'mt-4 mx-auto py-3 px-4 text-white bg-blueAirSwap border-darkgray border-1 rounded-sm font-medium text-lg uppercase'
- )}
+ className="w-full mt-4 mx-auto py-3 px-4 text-white bg-blueAirSwap border-darkgray border-1 rounded-sm font-medium text-lg uppercase"
/>
);
@@ -48,11 +44,7 @@ export const UrlForm = ({
placeholder={textareaUrlPlaceholder}
autoComplete="off"
onChange={handleChangeTextArea}
- className={twMerge(
- 'w-full xs:w-[90%] sm:w-4/5 md:w-full lg:w-4/5',
- 'mb-2 mx-auto p-5 min-h-[325px] bg-blueExtraDark border-blueGray border rounded-sm',
- 'placeholder:text-sm'
- )}
+ className="w-full mb-2 mx-auto p-5 min-h-[325px] bg-blueExtraDark border-blueGray border rounded-sm placeholder:text-sm"
/>
{isEnableCheck && (
diff --git a/src/utilities/validateJson.ts b/src/utilities/validateJson.ts
index 5c745ed..03a1c15 100644
--- a/src/utilities/validateJson.ts
+++ b/src/utilities/validateJson.ts
@@ -105,9 +105,7 @@ export const validateJson = ({
errorsList.push('swapContract: must be a valid ERC20 address');
// then check if address is correct
if (json['swapContract'] !== swapContractAddress) {
- errorsList.push(
- `swapContract: address is not valid. Check for deployed contracts on https://about.airswap.io/technology/deployments.`
- );
+ errorsList.push(`swapContract: SwapERC20 address is not valid.`);
}
}
}