From d4195d210b562652c8f92c000f3707a2054c6e62 Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Thu, 13 Feb 2025 09:02:57 +0100 Subject: [PATCH] - saving progress; --- .../components/AppSidebar/index.js | 2 +- src/pages/DocumentsBeneficiary/index.js | 46 +++++++++++++++++++ src/routes.js | 3 +- 3 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 src/pages/DocumentsBeneficiary/index.js diff --git a/src/layouts/DefaultLayout/components/AppSidebar/index.js b/src/layouts/DefaultLayout/components/AppSidebar/index.js index 80d13fc..2fbbdbb 100644 --- a/src/layouts/DefaultLayout/components/AppSidebar/index.js +++ b/src/layouts/DefaultLayout/components/AppSidebar/index.js @@ -140,7 +140,7 @@ const AppSidebar = () => { }, { label: __('Documenti', 'gepafin'), - icon: 'pi pi-chart-bar', + icon: 'pi pi-folder-open', href: '/documenti', id: 16, enable: intersection(permissions, ['APPLY_CALLS']).length diff --git a/src/pages/DocumentsBeneficiary/index.js b/src/pages/DocumentsBeneficiary/index.js new file mode 100644 index 0000000..a101868 --- /dev/null +++ b/src/pages/DocumentsBeneficiary/index.js @@ -0,0 +1,46 @@ +import React, { useEffect, useState, useCallback } from 'react'; +import { __ } from '@wordpress/i18n'; +import { pathOr } from 'ramda'; + +// store +import { useStore } from '../../store'; + +// components + + +const DocumentsBeneficiary = () => { + const chosenCompanyId = useStore().main.chosenCompanyId(); + + const getStats = (resp) => {} + + const errGetStats = () => {} + + useEffect(() => { + + }, [chosenCompanyId]); + + return( +
+
+

{__('Gestione documenti', 'gepafin')}

+
+ +
+ +
+

{__('Documenti del rappresentante legale', 'gepafin')}

+ +
+ +
+ +
+

{__('Documenti dell\'azienda', 'gepafin')}

+ +
+ +
+ ) +} + +export default DocumentsBeneficiary; \ No newline at end of file diff --git a/src/routes.js b/src/routes.js index cec0743..75a1caa 100644 --- a/src/routes.js +++ b/src/routes.js @@ -51,6 +51,7 @@ import SoccorsoEditInstructorManager from './pages/SoccorsoEditInstructorManager import SoccorsoIstruttorioInstructorManager from './pages/SoccorsoIstruttorioInstructorManager'; import SoccorsoIstruttorioMioInstructorManager from './pages/SoccorsoIstruttorioMioInstructorManager'; import StatsBeneficiary from './pages/StatsBeneficiary'; +import DocumentsBeneficiary from './pages/DocumentsBeneficiary'; const routes = ({ role, chosenCompanyId }) => { @@ -245,7 +246,7 @@ const routes = ({ role, chosenCompanyId }) => { }/> {'ROLE_SUPER_ADMIN' === role ? : null} - {'ROLE_BENEFICIARY' === role ? : null} + {'ROLE_BENEFICIARY' === role ? : null} {'ROLE_PRE_INSTRUCTOR' === role ? : null} {'ROLE_INSTRUCTOR_MANAGER' === role ? : null} }/>