diff --git a/app/components/PaginatedList.tsx b/app/components/PaginatedList.tsx index e50250f9b..e43209943 100644 --- a/app/components/PaginatedList.tsx +++ b/app/components/PaginatedList.tsx @@ -153,7 +153,6 @@ class PaginatedList extends React.Component> { renderHeading, renderError, onEscape, - children, } = this.props; const showLoading = @@ -224,7 +223,6 @@ class PaginatedList extends React.Component> { }); }} - {children} {this.allowLoadMore && ( )} diff --git a/app/components/Sidebar/components/Collections.tsx b/app/components/Sidebar/components/Collections.tsx index ac03c0618..30be0a624 100644 --- a/app/components/Sidebar/components/Collections.tsx +++ b/app/components/Sidebar/components/Collections.tsx @@ -8,7 +8,6 @@ import Collection from "~/models/Collection"; import Flex from "~/components/Flex"; import Error from "~/components/List/Error"; import PaginatedList from "~/components/PaginatedList"; -import Text from "~/components/Text"; import { createCollection } from "~/actions/definitions/collections"; import useStores from "~/hooks/useStores"; import DraggableCollectionLink from "./DraggableCollectionLink"; @@ -63,11 +62,6 @@ function Collections() { /> ) : undefined } - empty={ - - {t("Empty")} - - } renderError={(props) => } renderItem={(item: Collection, index) => ( )} - > - - + /> + ); } -const Empty = styled(Text)` - margin-left: 36px; - margin-bottom: 0; - line-height: 34px; - font-style: italic; -`; - const StyledError = styled(Error)` font-size: 15px; padding: 0 8px; diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index c66347044..ff400ef52 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -160,10 +160,10 @@ "Move document": "Move document", "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", "Collections": "Collections", - "Empty": "Empty", "Untitled": "Untitled", "New nested document": "New nested document", "Document not supported – try Markdown, Plain text, HTML, or Word": "Document not supported – try Markdown, Plain text, HTML, or Word", + "Empty": "Empty", "Starred documents could not be loaded": "Starred documents could not be loaded", "Starred": "Starred", "Show more": "Show more",