diff --git a/apps/web/pages/documents/[id]/recipients.tsx b/apps/web/pages/documents/[id]/recipients.tsx index fe0fa0165..f3c0ea919 100644 --- a/apps/web/pages/documents/[id]/recipients.tsx +++ b/apps/web/pages/documents/[id]/recipients.tsx @@ -10,6 +10,7 @@ import { useRouter } from "next/router"; import { toast } from "react-hot-toast"; import { getDocument } from "@documenso/lib/query"; import { Document as PrismaDocument } from "@prisma/client"; +import { Button } from "@documenso/ui"; const RecipientsPage: NextPageWithLayout = (props: any) => { const router = useRouter(); @@ -20,8 +21,6 @@ const RecipientsPage: NextPageWithLayout = (props: any) => { {title} - {/* -todo add signers ui -todo add breadcrumps -todo who will sign this - dropdown */}
- +
diff --git a/packages/ui/components/button/Button.tsx b/packages/ui/components/button/Button.tsx new file mode 100644 index 000000000..e4973d996 --- /dev/null +++ b/packages/ui/components/button/Button.tsx @@ -0,0 +1,34 @@ +import { classNames } from "@documenso/lib"; +import Link from "next/link"; +import React from "react"; +import { Tooltip } from "react-tooltip"; +import short from "short-uuid"; + +export function Button(props: any) { + const isLink = typeof props.href !== "undefined"; + const { color = "primary", icon, disabled, onClick } = props; + const baseStyles = + "inline-flex items-center justify-center rounded-md border border-transparent px-4 py-2 text-sm font-medium text-white shadow-sm sm:w-auto disabled:bg-gray-300"; + const primaryStyles = "bg-neon hover:bg-neon-dark"; + const secondaryStyles = + "border-gray-300 bg-white text-gray-700 hover:bg-gray-50"; + + return isLink ? ( + + {props.children} + + ) : ( + + ); +} diff --git a/packages/ui/components/button/index.ts b/packages/ui/components/button/index.ts new file mode 100644 index 000000000..398a3c509 --- /dev/null +++ b/packages/ui/components/button/index.ts @@ -0,0 +1 @@ +export { Button } from "./button"; diff --git a/packages/ui/index.ts b/packages/ui/index.ts index cb0ff5c3b..57b01f643 100644 --- a/packages/ui/index.ts +++ b/packages/ui/index.ts @@ -1 +1 @@ -export {}; +export { Button } from "./components/./button";