project restructuring and initial refactoring

This commit is contained in:
Roman committed 2020-06-09 15:14:40 +03:00
1 parent 5af12bdbbd
commit aa0eca2dc4
807 files changed
+11848 -22947

No files matched your search

+1
View File
@@ -0,0 +1 @@
export * from "./no-items"
@@ -0,0 +1,4 @@
.NoItems {
height: 100%;
text-align: center;
}
+21
View File
@@ -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>
)
}