From 253e5cfcfaf8263b778c951ff5806ad42c6fc82e Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Sun, 19 Mar 2023 12:13:13 +0100 Subject: [PATCH] show all fields while signing, date field design --- apps/web/components/editor/signable-field.tsx | 9 ++++++++- apps/web/pages/documents/[id]/sign.tsx | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/web/components/editor/signable-field.tsx b/apps/web/components/editor/signable-field.tsx index cde6b8eb3..aa0ae07e9 100644 --- a/apps/web/components/editor/signable-field.tsx +++ b/apps/web/components/editor/signable-field.tsx @@ -2,6 +2,7 @@ import React, { useState } from "react"; import Draggable from "react-draggable"; import { IconButton } from "@documenso/ui"; import { XCircleIcon } from "@heroicons/react/20/solid"; +import { classNames } from "@documenso/lib"; const stc = require("string-to-color"); type FieldPropsType = { @@ -43,13 +44,19 @@ export default function SignableField(props: FieldPropsType) { if (!field?.signature) props.onClick(props.field); }} ref={nodeRef} - className="cursor-pointer opacity-80 m-auto w-48 h-16 flex-row-reverse text-lg font-bold text-center absolute top-0 left-0 select-none hover:brightness-50" + className={classNames( + "opacity-80 m-auto w-48 h-16 flex-row-reverse text-lg font-bold text-center absolute top-0 left-0 select-none", + field.type === "SIGNATURE" + ? "cursor-pointer hover:brightness-50" + : "cursor-not-allowed" + )} style={{ background: stc(props.field.Recipient.email), }} >