File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,6 @@ const App: FC = () => {
103103 < CTAButtons
104104 handleModalButtonClick = { handleModalButtonClick }
105105 handleTrayButtonClick = { handleTrayButtonClick }
106- hasFormData = { hasFormData }
107106 isDisabled = { isDisabled }
108107 />
109108 < Suspense fallback = { null } >
Original file line number Diff line number Diff line change 11import {
22 Button ,
33 IconAddSolid ,
4- IconEditSolid ,
54 IconInfoBorderlessLine ,
65 Text ,
76 View ,
@@ -10,15 +9,13 @@ import type React from "react";
109
1110type CTAButtonsProps = {
1211 isDisabled : boolean ;
13- hasFormData : boolean ;
1412 setIsTrayOpen ?: ( isOpen : boolean ) => void ;
1513 handleModalButtonClick : ( ) => void ;
1614 handleTrayButtonClick ?: ( ) => void ;
1715} ;
1816
1917const CTAButtons : React . FC < CTAButtonsProps > = ( {
2018 isDisabled,
21- hasFormData,
2219 handleModalButtonClick,
2320 handleTrayButtonClick,
2421} ) => (
@@ -43,9 +40,9 @@ const CTAButtons: React.FC<CTAButtonsProps> = ({
4340 disabled = { isDisabled }
4441 margin = "small"
4542 onClick = { handleModalButtonClick }
46- renderIcon = { hasFormData ? < IconEditSolid /> : < IconAddSolid /> }
43+ renderIcon = { < IconAddSolid /> }
4744 >
48- { hasFormData ? "Edit" : " Sign up" }
45+ Sign up
4946 </ Button >
5047 </ View >
5148 </ View >
You can’t perform that action at this time.
0 commit comments