Lens restructure (#540)

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman authored and GitHub committed 2020-06-30 14:35:16 +03:00
1 parent e810eab39f
commit b7974827d2
786 files changed
+14567 -24066

No files matched your search

@@ -0,0 +1 @@
export * from "./no-items"
@@ -0,0 +1,4 @@
.NoItems {
height: 100%;
text-align: center;
}
@@ -0,0 +1,21 @@
import "./no-items.scss"
import React from "react";
import { Trans } from "@lingui/macro";
import { cssNames, IClassName } from "../../utils";
interface Props {
className?: IClassName;
children?: React.ReactNode;
}
export function NoItems(props: Props) {
const { className, children } = props;
return (
<div className={cssNames("NoItems flex box grow", className)}>
<div className="box center">
{children || <Trans>Item list is empty</Trans>}
</div>
</div>
)
}