diff --git a/src/components/account_edit/AccountBannerCom.jsx b/src/components/account_edit/AccountBannerCom.jsx new file mode 100644 index 0000000..d868498 --- /dev/null +++ b/src/components/account_edit/AccountBannerCom.jsx @@ -0,0 +1,92 @@ + +import {Link} from 'react-router-dom' +import Icons from "../Icons"; + +export default function AccountBannerCom({accountInfo}) { + return <> +
+
+
+

Account Info

+
+
+ <> + + + + + + + + + + + + + + {(accountInfo && Object.keys(accountInfo).length > 0) ? + + {/**/} + + + + + + + + : + + + + } + +
+ Firstname + + Lastname + + Username + + Email + + Country + + Action +
*/} + {/*
*/} + {/*
{1}
*/} + {/*
*/} + {/*
+
+
{accountInfo?.firstname}
+
+
+
+
{accountInfo?.lastname}
+
+
+
+
{accountInfo?.username}
+
+
+
+
{accountInfo?.email}
+
+
+
+
{accountInfo?.country}
+
+
+
+ No Record Found +
+
+ +
+
+
+ +} + + + diff --git a/src/components/account_edit/AccountEditCom.jsx b/src/components/account_edit/AccountEditCom.jsx index 014f59e..ce77619 100644 --- a/src/components/account_edit/AccountEditCom.jsx +++ b/src/components/account_edit/AccountEditCom.jsx @@ -7,10 +7,8 @@ import BreadcrumbCom from "../breadcrumb/BreadcrumbCom"; import RouteLinks from "../../RouteLinks"; import { getAccountView } from "../../services/siteServices"; import queryKeys from "../../services/queryKeys"; -// import CustomerAccountView from "./CustomerAccountView"; -// import AccountProfileView from "./AccountProfileView"; -// import CustomerSubscriptionsView from "./CustomerSubscriptionsView"; -// import CustomerPaymentsView from "./CustomerPaymentsView"; +import AccountBannerCom from "./AccountBannerCom"; + export default function AccountEditCom() { const queryClient = useQueryClient(); @@ -39,9 +37,7 @@ export default function AccountEditCom() { }); const accountsViewData = data?.data; // ACCOUNT VIEW DATA const account_info = accountsViewData?.account; - const account_profile = accountsViewData?.account_profile; - const subscriptions = accountsViewData?.subscriptions; - const payments = accountsViewData?.payments; + useEffect(() => { queryClient.refetchQueries({ @@ -54,7 +50,7 @@ export default function AccountEditCom() { return (
@@ -67,10 +63,7 @@ export default function AccountEditCom() {

{error.message}

) : ( <> - {/* - - - */} + )}