diff --git a/client/modules/IDE/components/AddToCollectionList.jsx b/client/modules/IDE/components/AddToCollectionList.jsx index 75713367ee..8fc479c2f2 100644 --- a/client/modules/IDE/components/AddToCollectionList.jsx +++ b/client/modules/IDE/components/AddToCollectionList.jsx @@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next'; import { useDispatch, useSelector } from 'react-redux'; import styled from 'styled-components'; import { Loader } from '../../App/components/Loader'; +import CollectionCreate from '../../User/components/CollectionCreate'; import { addToCollection, getCollections, @@ -63,7 +64,7 @@ const AddToCollectionList = ({ projectId }) => { if (showLoader) { return ; } else if (collections.length === 0) { - return t('AddToCollectionList.Empty'); + return ; } return ( { const { t } = useTranslation(); @@ -48,13 +49,11 @@ const CollectionItemRow = ({ collection, item, isOwner }) => { {sketchOwnerUsername} {isOwner && ( - + + + {t('Remove collection')} + + )} diff --git a/translations/locales/bn/translations.json b/translations/locales/bn/translations.json index 613fdb67b2..1b1aeb8f03 100644 --- a/translations/locales/bn/translations.json +++ b/translations/locales/bn/translations.json @@ -476,6 +476,7 @@ "DescriptionPlaceholder": "বর্ণনা যোগ করুন", "NumSketches": "{{count}} স্কেচ", "By": "সংগ্রহ করেছেন ", + "RemoveFromCollection": "Remove from Collection", "NoSketches": "সংগ্রহে কোন স্কেচ নেই", "TableSummary": "সমস্ত সংগ্রহ ধারণ করা টেবিল", "HeaderName": "নাম", diff --git a/translations/locales/en-US/translations.json b/translations/locales/en-US/translations.json index 7529a1d9ff..cd6efb1406 100644 --- a/translations/locales/en-US/translations.json +++ b/translations/locales/en-US/translations.json @@ -278,7 +278,7 @@ } }, "Sidebar": { - "Title": "Sketch Files", + "Title": "Sketch something today", "ToggleARIA": "Toggle open/close sketch file options", "AddFolder": "Create folder", "AddFolderARIA": "add folder", @@ -521,6 +521,7 @@ "NumSketches": "{{count}} sketch", "NumSketches_plural": "{{count}} sketches", "By": "Collection by ", + "RemoveFromCollection": "Remove from Collection", "NoSketches": "No sketches in collection", "TableSummary": "table containing all collections", "HeaderName": "Name",