mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00: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>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user