This commit is contained in:
Kenneth Jannette
2024-05-26 15:51:52 -05:00
parent f52d6d9f97
commit 84419c92ff
4 changed files with 42 additions and 31 deletions

View File

@@ -41,7 +41,9 @@ const Dashboard = () => {
const appUserId = group ? group.appUserId : null;
const _fbAuthUid = group ? group.fbAuthUid : null;
const isDashboard = true;
group && console.log("group.tpe", group?.tpe);
console.log("auth", auth);
console.log("appUserId", appUserId);
useEffect(() => {
if (count.current == null) {
setIsMobile(window.innerWidth < 440);
@@ -188,6 +190,10 @@ const Dashboard = () => {
) : null;
};
if (!group) {
return;
}
return (
<>
<div className="dashboard-header">
@@ -203,34 +209,6 @@ const Dashboard = () => {
<div className="user-name-container2">{group.firm}</div>
</div>
<div className="app-divider dash-divider" />
{isPromoFirstLogin ? (
<>
<div className="dash-promo-first-box">
<div className="dash-promo-first-wrap">
<div className="dash-promo-first-textwrap">
<div className="dash-promo-first-text">
<p className="dash-welcome-text">
Welcome to Novodraft, attorney {group.lastName}. We are
excited to introduce you to our AI application. Review the
step-by-step user guide by clicking "How-to" in the above
navigation bar.
</p>
<p className="dash-welcome-text">
Your login is username: <strong>{group.email}</strong> with
a temporary password: <strong>{group.tpe}</strong>. You
should change your password now by{" "}
<span onClick={handleClick} className="dash-clicknow-span">
clicking here.
</span>
</p>
</div>
</div>
</div>
</div>
<div className="app-divider dash-divider" />
</>
) : null}
<div className="stats-container">
<div className="stats-row-box">
<div className="stats-unit-wrapper">
@@ -325,3 +303,34 @@ const Dashboard = () => {
};
export default Dashboard;
/*
{isPromoFirstLogin ? (
<>
<div className="dash-promo-first-box">
<div className="dash-promo-first-wrap">
<div className="dash-promo-first-textwrap">
<div className="dash-promo-first-text">
<p className="dash-welcome-text">
Welcome to Novodraft, attorney {group.lastName}. We are
excited to introduce you to our AI application. Review the
step-by-step user guide by clicking "How-to" in the above
navigation bar.
</p>
<p className="dash-welcome-text">
Your login is username: <strong>{group.email}</strong> with
a temporary password: <strong>{group.tpe}</strong>. You
should change your password now by{" "}
<span onClick={handleClick} className="dash-clicknow-span">
clicking here.
</span>
</p>
</div>
</div>
</div>
</div>
<div className="app-divider dash-divider" />
</>
) : null}
*/

View File

@@ -70,7 +70,7 @@ const HomePageB = () => {
subscriptionPeriodEnd,
subscriptionId,
isPromotionalMebership = true,
docsAllowedPeMonth = 1
docsAllowedPeMonth = 99999
) {
if (!email || !password || !dataValues[0]) {
return;

View File

@@ -22,6 +22,7 @@ const Login = () => {
setNotice("");
try {
console.log("auth, email, password", auth, email, password);
const userCredential = await signInWithEmailAndPassword(
auth,
email,

View File

@@ -404,6 +404,7 @@ const SignupPage = () => {
// ******************** END STRIPE PAYMENT API CALL ******************** //
const handleSignup = async (e) => {
const paymentDataValues = validatePaymentData();
if (paymentDataValues === null) {
return;
}
@@ -412,7 +413,7 @@ const SignupPage = () => {
if (dataValues === null) {
return;
}
console.log("dataValues", dataValues);
//const planType = determinePlan(isAnnual, activeRadioOption);
if (paymentDataValues && dataValues) {