staging
zomars 2022-04-19 15:42:17 -06:00
parent 3c5686171c
commit 4b83fef672
4 changed files with 521 additions and 52 deletions

@ -1 +1 @@
Subproject commit 0e9186e4d8d3af2b6682d4b6e3a2a3abfe9658b5
Subproject commit 2fc7b73c51df524f31a6a9aec69faabbcbcba314

1
packages/types/SVGComponent.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export type SVGComponent = React.FunctionComponent<React.SVGProps<SVGSVGElement>>;

View File

@ -0,0 +1,27 @@
import React from "react";
import { SVGComponent } from "@calcom/types/SVGComponent";
export default function EmptyScreen({
Icon,
headline,
description,
}: {
Icon: SVGComponent;
headline: string;
description: string | React.ReactElement;
}) {
return (
<>
<div className="min-h-80 my-6 flex flex-col items-center justify-center rounded-sm border border-dashed">
<div className="flex h-[72px] w-[72px] items-center justify-center rounded-full bg-gray-600 dark:bg-white">
<Icon className="inline-block h-10 w-10 text-white dark:bg-white dark:text-gray-600" />
</div>
<div className="max-w-[420px] text-center">
<h2 className="mt-6 mb-1 text-lg font-medium dark:text-gray-300">{headline}</h2>
<p className="text-sm leading-6 text-gray-600 dark:text-gray-300">{description}</p>
</div>
</div>
</>
);
}

543
yarn.lock

File diff suppressed because it is too large Load Diff