From f811ec173b6fd6cd5426a73602ca31a951748f59 Mon Sep 17 00:00:00 2001 From: piyumaldk Date: Wed, 17 Feb 2021 12:33:37 +0530 Subject: [PATCH 1/3] All categories allignment fixed --- com-dict-client/src/components/Categories/index.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/com-dict-client/src/components/Categories/index.js b/com-dict-client/src/components/Categories/index.js index 898ecf8..c2ea0e2 100644 --- a/com-dict-client/src/components/Categories/index.js +++ b/com-dict-client/src/components/Categories/index.js @@ -160,7 +160,6 @@ function CatView() { 1 - + @@ -251,13 +251,14 @@ function CatView() { - + 1 + + @@ -331,9 +333,10 @@ function CatView() { - + 1 + @@ -350,14 +353,14 @@ function CatView() { - + 1 - + + ); From b726b255ecb685f9db6d3078f5ffd7528755d5dc Mon Sep 17 00:00:00 2001 From: piyumaldk Date: Sun, 7 Mar 2021 11:52:49 +0530 Subject: [PATCH 2/3] Fix Add validations --- .../src/components/AddWord/index.js | 34 +++++++++++++++---- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/com-dict-client/src/components/AddWord/index.js b/com-dict-client/src/components/AddWord/index.js index 77dde09..7e9d25c 100644 --- a/com-dict-client/src/components/AddWord/index.js +++ b/com-dict-client/src/components/AddWord/index.js @@ -75,7 +75,7 @@ function WordForm() { const user = useSelector((state) => state.firebase.auth); const handleAddHeadTerm = () => { - if (category === "") { + if (category === "" || category == null) { return message.error("Please select a category"); } @@ -120,7 +120,9 @@ function WordForm() {
setOtherLanguageTerm(val.target.value)} @@ -192,7 +194,9 @@ function WordForm() { @@ -201,7 +205,9 @@ function WordForm() { setMeaning(val.target.value)} @@ -211,7 +217,13 @@ function WordForm() { setExample(val.target.value)} @@ -219,7 +231,15 @@ function WordForm() { /> - + + - + - + - + @@ -170,7 +171,8 @@ function WordForm() { placeholder="New head term" /> - + +