* First round of changes * Some missing styling * Last round of core changes * Color tweaks * Improving code readability * Reverting unneeded changes * Reverting yarn.lock * Removing yarn.lock * Empty state updated * Fixing webhook test * Cleaning up code * Fixing test and simplifying code a bit * Merging API Keys into developer section * Unifying Empty Screen with monorepo version * Cleaning up * Installed apps logic consistency + cleaning up * Type fixes * Apply suggestions from code review Co-authored-by: Omar López <zomars@me.com> Co-authored-by: alannnc <alannnc@gmail.com> * Improvements, still WIP * Update apps/web/pages/apps/installed.tsx Co-authored-by: Omar López <zomars@me.com> * Apply suggestions from code review Co-authored-by: Omar López <zomars@me.com> * App active install status * Apple Calendar setup, Daily.co preinstalled * Final pass * Minor tweaks * Conflicts with migration ignored * Fixing merge * Fixing merge yet again * Adopting main changes * Removing unneeded data-testid * Fixing reported bugs * Simplifying webhook query * Moving teams settings tab to second Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: zomars <zomars@me.com> Co-authored-by: alannnc <alannnc@gmail.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com>
28 lines
896 B
TypeScript
28 lines
896 B
TypeScript
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 flex my-6 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>
|
|
</>
|
|
);
|
|
}
|