From e5679eb27c55836e18b7eab24a3a2ab6c2e77ec8 Mon Sep 17 00:00:00 2001 From: Lykke Axlin Date: Wed, 13 Oct 2021 16:35:43 +0200 Subject: [PATCH] add url regex to community link Signed-off-by: Lykke Axlin Co-authored-by: klaraab --- .../bazaar/src/components/InputField/InputField.tsx | 8 +++----- .../src/components/ProjectDialog/ProjectDialog.tsx | 11 +++++++++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/plugins/bazaar/src/components/InputField/InputField.tsx b/plugins/bazaar/src/components/InputField/InputField.tsx index fc25cd7a43..4d284ff82c 100644 --- a/plugins/bazaar/src/components/InputField/InputField.tsx +++ b/plugins/bazaar/src/components/InputField/InputField.tsx @@ -25,7 +25,7 @@ type Props = { control: Control; helperText?: string; placeholder?: string; - required: boolean; + rules?: Object; }; export const InputField = ({ @@ -34,7 +34,7 @@ export const InputField = ({ control, helperText, placeholder, - required, + rules, }: Props) => { const label = inputType.charAt(0).toLocaleUpperCase('en-US') + inputType.slice(1); @@ -43,9 +43,7 @@ export const InputField = ({ (