Skip to content

Commit 3eb1484

Browse files
committed
remove edit button
1 parent cb8ea97 commit 3eb1484

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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}>

src/components/CTAButtons.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
Button,
33
IconAddSolid,
4-
IconEditSolid,
54
IconInfoBorderlessLine,
65
Text,
76
View,
@@ -10,15 +9,13 @@ import type React from "react";
109

1110
type CTAButtonsProps = {
1211
isDisabled: boolean;
13-
hasFormData: boolean;
1412
setIsTrayOpen?: (isOpen: boolean) => void;
1513
handleModalButtonClick: () => void;
1614
handleTrayButtonClick?: () => void;
1715
};
1816

1917
const 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>

0 commit comments

Comments
 (0)