Co-authored-by: gitstart <gitstart@users.noreply.github.com>pull/2669/head^2
parent
549e38fb78
commit
84f19bb4df
|
@ -914,7 +914,9 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
||||||
<h1
|
<h1
|
||||||
style={{ fontSize: 22, letterSpacing: "-0.0009em" }}
|
style={{ fontSize: 22, letterSpacing: "-0.0009em" }}
|
||||||
className="inline pl-0 text-gray-900 focus:text-black group-hover:text-gray-500">
|
className="inline pl-0 text-gray-900 focus:text-black group-hover:text-gray-500">
|
||||||
{eventType.title}
|
{formMethods.getValues("title") && formMethods.getValues("title") !== ""
|
||||||
|
? formMethods.getValues("title")
|
||||||
|
: eventType.title}
|
||||||
</h1>
|
</h1>
|
||||||
<PencilIcon className="ml-1 -mt-1 inline h-4 w-4 text-gray-700 group-hover:text-gray-500" />
|
<PencilIcon className="ml-1 -mt-1 inline h-4 w-4 text-gray-700 group-hover:text-gray-500" />
|
||||||
</>
|
</>
|
||||||
|
@ -929,6 +931,10 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
||||||
placeholder={t("quick_chat")}
|
placeholder={t("quick_chat")}
|
||||||
{...formMethods.register("title")}
|
{...formMethods.register("title")}
|
||||||
defaultValue={eventType.title}
|
defaultValue={eventType.title}
|
||||||
|
onBlur={() => {
|
||||||
|
setEditIcon(true);
|
||||||
|
formMethods.getValues("title") === "" && formMethods.setValue("title", eventType.title);
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue