Merge pull request #86 from kjannette/states2

more
This commit is contained in:
S Jannette
2024-02-05 14:58:29 -06:00
committed by GitHub

View File

@@ -383,11 +383,10 @@ const SignupPage = () => {
navigate("/dashboard"); navigate("/dashboard");
} }
} catch (error) { } catch (error) {
console.log("Error handling request", error, error.message);
setIsBusy(false); setIsBusy(false);
setNotice( setNotice("Sorry, something went wrong. Please try again.");
error.message || "Sorry, something went wrong. Please try again."
);
} }
} }
}; };
@@ -403,6 +402,16 @@ const SignupPage = () => {
const signupForm = ( const signupForm = (
<div className="signup-sub-container"> <div className="signup-sub-container">
{showNoticeOnPage ? (
<>
<br></br>
<div className="alert alert-danger" role="alert">
{notice}
</div>
</>
) : (
<></>
)}
<div className="signup-header"> <div className="signup-header">
<h1 className="signup-header-text">Create A Novodraft Account</h1> <h1 className="signup-header-text">Create A Novodraft Account</h1>
{!isUpgrade ? ( {!isUpgrade ? (
@@ -488,16 +497,6 @@ const SignupPage = () => {
/> />
</div> </div>
<div className="signup-freebie-box ">Free trial available!</div> <div className="signup-freebie-box ">Free trial available!</div>
{showNoticeOnPage ? (
<>
<br></br>
<div className="alert alert-danger" role="alert">
{notice}
</div>
</>
) : (
<></>
)}
</div> </div>
); );
const disableIndex = const disableIndex =