* Migrations, models, commands * ui * Move starred hint to location state * lint * tsc * refactor * Add collection empty state in expanded sidebar * Add empty placeholder within starred collections * Drag and drop improves, Relative refactor * fix: Starring untitled draft leaves empty space * fix: Creating draft in starred collection shouldnt open main * fix: Dupe drop cursor * Final fixes * fix: Canonical redirect replaces starred location state * fix: Don't show reorder cursor at the top of collection with no permission to edit when dragging
23 lines
488 B
TypeScript
23 lines
488 B
TypeScript
import * as React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
import styled from "styled-components";
|
|
import Text from "~/components/Text";
|
|
|
|
const EmptyCollectionPlaceholder = () => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<Empty type="tertiary" size="small">
|
|
{t("Empty")}
|
|
</Empty>
|
|
);
|
|
};
|
|
|
|
const Empty = styled(Text)`
|
|
margin-left: 46px;
|
|
margin-bottom: 0;
|
|
line-height: 34px;
|
|
font-style: italic;
|
|
`;
|
|
|
|
export default EmptyCollectionPlaceholder;
|