Skip to content

Commit d6d0c82

Browse files
committed
add test route
1 parent 905d41d commit d6d0c82

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/components/SignupModal.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,18 @@ const SignupModal = ({ setIsTrayOpen }): React.ReactElement => {
7676

7777
return (
7878
<>
79-
<Button
80-
color="primary-inverse"
81-
disabled={isDisabled}
82-
margin="small"
83-
onClick={handleButtonClick}
84-
renderIcon={<IconAddSolid />}
85-
withBackground={false}
86-
>
87-
Sign up
88-
</Button>
79+
{window.location.hash === "#/test" && (
80+
<Button
81+
color="primary-inverse"
82+
disabled={isDisabled}
83+
margin="small"
84+
onClick={handleButtonClick}
85+
renderIcon={<IconAddSolid />}
86+
withBackground={false}
87+
>
88+
Sign up
89+
</Button>
90+
)}
8991
<Modal
9092
as="form"
9193
id="signupForm"

0 commit comments

Comments
 (0)