remove "sign up" button on main page once logged in

This commit is contained in:
Brandon Thomas committed 2022-07-25 23:10:11 -04:00
1 parent a1d2f7c60d
commit 4a1d4d24e9
1 file changed
+15 -5
@@ -419,6 +419,20 @@ function TtsModelListFc(props: Props) {
);
}
let signUpButton = <></>;
if (!props.sessionWrapper.isLoggedIn()) {
signUpButton = (
<>
<Link to="/signup">
<button type="button" className="btn btn-primary w-100">
Sign Up
</button>
</Link>
</>
);
}
return (
<div>
{pleaseFollowNotice}
@@ -460,11 +474,7 @@ function TtsModelListFc(props: Props) {
<Fade bottom delay={delay} duration={duration} distance={distance}>
<div className="d-flex flex-column flex-md-row gap-3 justify-content-center justify-content-lg-start mb-5 mb-lg-4">
<Link to="/signup">
<button type="button" className="btn btn-primary w-100">
Sign Up
</button>
</Link>
{signUpButton}
<Link to="/clone">
<button type="button" className="btn btn-secondary w-100">
Clone My Voice!