more
This commit is contained in:
@@ -13,9 +13,7 @@ const AccountPage = () => {
|
|||||||
const { currentUserCreatedAt } = useContext(AuthContext);
|
const { currentUserCreatedAt } = useContext(AuthContext);
|
||||||
const { appState } = useContext(AppContext);
|
const { appState } = useContext(AppContext);
|
||||||
const { group } = appState;
|
const { group } = appState;
|
||||||
console.log("group", group);
|
|
||||||
const [docsGenerated, setDocsGenerated] = useState(null);
|
const [docsGenerated, setDocsGenerated] = useState(null);
|
||||||
const [docsAllowed, setDocsAllowed] = useState(group?.docsAllowed);
|
|
||||||
const appUserId = group ? group.appUserId : null;
|
const appUserId = group ? group.appUserId : null;
|
||||||
const [showModal, setShowModal] = useState(false);
|
const [showModal, setShowModal] = useState(false);
|
||||||
|
|
||||||
@@ -24,6 +22,8 @@ const AccountPage = () => {
|
|||||||
? process.env.REACT_APP_API_DEV
|
? process.env.REACT_APP_API_DEV
|
||||||
: process.env.REACT_APP_API_PROD;
|
: process.env.REACT_APP_API_PROD;
|
||||||
|
|
||||||
|
const docsAllowed = group?.docsAllowed;
|
||||||
|
|
||||||
const handleConfirmUpgrade = () => {
|
const handleConfirmUpgrade = () => {
|
||||||
const isUpgrade = true;
|
const isUpgrade = true;
|
||||||
const currentPlan = group?.subscriptionPlan;
|
const currentPlan = group?.subscriptionPlan;
|
||||||
@@ -46,10 +46,6 @@ const AccountPage = () => {
|
|||||||
return `(${num.slice(0, 3)}) ${num.slice(4, 7)}-${num.slice(6, 10)}`;
|
return `(${num.slice(0, 3)}) ${num.slice(4, 7)}-${num.slice(6, 10)}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!group) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
const handleCancelSub = async () => {
|
const handleCancelSub = async () => {
|
||||||
setShowModal(true);
|
setShowModal(true);
|
||||||
try {
|
try {
|
||||||
@@ -72,6 +68,9 @@ const AccountPage = () => {
|
|||||||
const supReq = "5ac45d12";
|
const supReq = "5ac45d12";
|
||||||
navigate(`/requestpage/${supReq}`);
|
navigate(`/requestpage/${supReq}`);
|
||||||
};
|
};
|
||||||
|
if (!group) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="account-container">
|
<div className="account-container">
|
||||||
|
|||||||
Reference in New Issue
Block a user