Skip to content

Commit 6880ae3

Browse files
fix: remove add recipient button from signyour-self flow in mobile view
1 parent 9a07c67 commit 6880ae3

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

apps/OpenSign/src/components/pdf/WidgetComponent.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -335,19 +335,21 @@ function WidgetComponent({
335335
<span style={{ marginLeft: 2 }}>Add role</span>
336336
</div>
337337
) : (
338-
<div
339-
data-tut="reactourAddbtn"
340-
style={{
341-
margin: "5px 0 5px 0",
342-
backgroundColor: themeColor,
343-
color: "white"
344-
}}
345-
className="p-[10px] my-[2px] flex flex-row items-center justify-center border-[1px] border-[#47a3ad] hover:bg-[#47a3ad] text-[#47a3ad] hover:text-white cursor-pointer"
346-
onClick={() => setIsAddSigner(true)}
347-
>
348-
<i className="fa-solid fa-plus"></i>
349-
<span style={{ marginLeft: 2 }}>Add recipients</span>
350-
</div>
338+
setIsAddSigner && (
339+
<div
340+
data-tut="reactourAddbtn"
341+
style={{
342+
margin: "5px 0 5px 0",
343+
backgroundColor: themeColor,
344+
color: "white"
345+
}}
346+
className="p-[10px] my-[2px] flex flex-row items-center justify-center border-[1px] border-[#47a3ad] hover:bg-[#47a3ad] text-[#47a3ad] hover:text-white cursor-pointer"
347+
onClick={() => setIsAddSigner(true)}
348+
>
349+
<i className="fa-solid fa-plus"></i>
350+
<span style={{ marginLeft: 2 }}>Add recipients</span>
351+
</div>
352+
)
351353
)}
352354

353355
<div

0 commit comments

Comments
 (0)