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 appUserId = group ? group.appUserId : null;
const _fbAuthUid = group ? group.fbAuthUid : null; const _fbAuthUid = group ? group.fbAuthUid : null;
const isDashboard = true; const isDashboard = true;
group && console.log("group.tpe", group?.tpe);
console.log("auth", auth);
console.log("appUserId", appUserId);
useEffect(() => { useEffect(() => {
if (count.current == null) { if (count.current == null) {
setIsMobile(window.innerWidth < 440); setIsMobile(window.innerWidth < 440);
@@ -188,6 +190,10 @@ const Dashboard = () => {
) : null; ) : null;
}; };
if (!group) {
return;
}
return ( return (
<> <>
<div className="dashboard-header"> <div className="dashboard-header">
@@ -203,34 +209,6 @@ const Dashboard = () => {
<div className="user-name-container2">{group.firm}</div> <div className="user-name-container2">{group.firm}</div>
</div> </div>
<div className="app-divider dash-divider" /> <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-container">
<div className="stats-row-box"> <div className="stats-row-box">
<div className="stats-unit-wrapper"> <div className="stats-unit-wrapper">
@@ -325,3 +303,34 @@ const Dashboard = () => {
}; };
export default 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, subscriptionPeriodEnd,
subscriptionId, subscriptionId,
isPromotionalMebership = true, isPromotionalMebership = true,
docsAllowedPeMonth = 1 docsAllowedPeMonth = 99999
) { ) {
if (!email || !password || !dataValues[0]) { if (!email || !password || !dataValues[0]) {
return; return;

View File

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

View File

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