new EmptyScreen component, using it in /bookings (#708)
* new EmptyScreen component, using it in /bookings * Linting fixes Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
This commit is contained in:
1 parent
96fd7ecf41
commit
3c089af58a
10 files changed
+303
-261
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import { SVGComponent } from "@lib/types/SVGComponent";
|
||||
import React from "react";
|
||||
|
||||
export default function EmptyScreen({
|
||||
Icon,
|
||||
headline,
|
||||
description,
|
||||
}: {
|
||||
Icon: SVGComponent;
|
||||
headline: string;
|
||||
description: string;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<div className="min-h-80 border border-dashed rounded-sm flex justify-center items-center flex-col">
|
||||
<div className="bg-white w-[72px] h-[72px] flex justify-center items-center rounded-full">
|
||||
<Icon className="inline-block w-10 h-10 bg-white" />
|
||||
</div>
|
||||
<div className="max-w-[500px] text-center">
|
||||
<h2 className="font-cal text-xl leading-7 font-bold mt-6 mb-3">{headline}</h2>
|
||||
<p className="leading-6">{description}</p>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
import classNames from "@lib/classNames";
|
||||
import { SVGComponent } from "@lib/types/SVGComponent";
|
||||
import Link, { LinkProps } from "next/link";
|
||||
import React, { forwardRef } from "react";
|
||||
|
||||
type SVGComponent = React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
||||
|
||||
export type ButtonProps = {
|
||||
color?: "primary" | "secondary" | "minimal" | "warn";
|
||||
size?: "base" | "sm" | "lg" | "fab";
|
||||
|
||||
Reference in new issue
Block a user