From 4d84fc923950bb946e044d0bfcd7e0744212d808 Mon Sep 17 00:00:00 2001 From: citizen-dror Date: Thu, 30 Apr 2020 17:17:24 +0300 Subject: [PATCH] localized SelectImageByTag --- src/components/molecules/FormImageDetails.tsx | 2 +- src/components/organisms/MyImageGallery.tsx | 43 ++++++++++--------- src/lng/en/translation.json | 2 + src/lng/he/translation.json | 2 + 4 files changed, 28 insertions(+), 21 deletions(-) diff --git a/src/components/molecules/FormImageDetails.tsx b/src/components/molecules/FormImageDetails.tsx index c0c26b4..f189747 100644 --- a/src/components/molecules/FormImageDetails.tsx +++ b/src/components/molecules/FormImageDetails.tsx @@ -120,7 +120,7 @@ const GroupTextEn: React.FC = observer(({ name }) => { ) => setCurrImageVal('texthe', e.target.value)} + onChange={(e: React.ChangeEvent) => setCurrImageVal('texten', e.target.value)} /> ); diff --git a/src/components/organisms/MyImageGallery.tsx b/src/components/organisms/MyImageGallery.tsx index f52204b..90bdf5f 100644 --- a/src/components/organisms/MyImageGallery.tsx +++ b/src/components/organisms/MyImageGallery.tsx @@ -100,28 +100,31 @@ interface PropsSelectImageByTag { const styleSelect = { width: '150px', }; -const SelectImageByTag: React.FC = observer(({ onChange }) => ( -
- - {/* +const SelectImageByTag: React.FC = observer(({ onChange }) => { + const { t } = useTranslation(); + return ( +
+ + {/* tags */} - ) => { onChange(e.target.value); }} - > - - - - - - - - - -
-)); + ) => { onChange(e.target.value); }} + > + + + + + + + + +
+
+ ); +}); const styleTitle: React.CSSProperties = { textAlign: 'center', diff --git a/src/lng/en/translation.json b/src/lng/en/translation.json index 3364c7b..c74340a 100644 --- a/src/lng/en/translation.json +++ b/src/lng/en/translation.json @@ -142,6 +142,8 @@ "resize": "Resize", "NoResultsFound": "No results found", "export-to-csv": "Export to CSV", + "general": "General", + "kids": "Kids", "hide-description": "Hide Text", "show-description": "Show Text", "not-found-images" : "No photos found for this category" diff --git a/src/lng/he/translation.json b/src/lng/he/translation.json index a29b5a3..c0520ab 100644 --- a/src/lng/he/translation.json +++ b/src/lng/he/translation.json @@ -143,6 +143,8 @@ "resize": "הגדלה", "NoResultsFound": "לא נמצאו תוצאות", "export-to-csv": "יצוא לקובץ CSV", + "general": "כללי", + "kids": "ילדים", "hide-description": "הסתר תאור", "show-description": "הצג תאור", "not-found-images" : "לא נמצאו תמונות לקטגוריה זו"