From 757c5827170364f5205d8a8f4a780ffb629c406a Mon Sep 17 00:00:00 2001 From: "@nishad.shirsat" Date: Tue, 29 Aug 2023 15:27:56 +0530 Subject: [PATCH 1/2] Alignment fix on wallet spinup and applied css on dark mode Signed-off-by: @nishad.shirsat --- src/commonComponents/QRcode.tsx | 2 +- .../organization/DedicatedIllustrate.tsx | 4 ++-- .../organization/SharedIllustrate.tsx | 4 ++-- src/components/organization/WalletSpinup.tsx | 19 ++++++++++--------- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/commonComponents/QRcode.tsx b/src/commonComponents/QRcode.tsx index 507f9f2e7..cc2825ac2 100644 --- a/src/commonComponents/QRcode.tsx +++ b/src/commonComponents/QRcode.tsx @@ -49,7 +49,7 @@ const CustomQRCode = ({ value, size }: { value: string, size: number }) => { {/*

OR

*/} {/*

Invitation URL

*/} -
+

@@ -275,7 +275,14 @@ const WalletSpinup = (props: { label: '', }} validationSchema={yup.object().shape({ - label: yup.string().required('Wallet label is required').trim().test('no-spaces', 'Spaces are not allowed', value => !value || !value.includes(' ')), + label: yup.string() + .required('Wallet label is required') + .trim() + .test('no-spaces', 'Spaces are not allowed', value => !value || !value.includes(' ')) + .matches( + /^[A-Za-z0-9-][^ !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]*$/, + 'Wallet label must be alphanumeric only', + ), })} validateOnBlur validateOnChange @@ -392,7 +399,7 @@ const WalletSpinup = (props: { disabled className="cursor-pointer w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500" /> -