diff --git a/src/layouts/DefaultLayout/components/AppSidebar/index.js b/src/layouts/DefaultLayout/components/AppSidebar/index.js index c449022..2fbbdbb 100644 --- a/src/layouts/DefaultLayout/components/AppSidebar/index.js +++ b/src/layouts/DefaultLayout/components/AppSidebar/index.js @@ -138,6 +138,13 @@ const AppSidebar = () => { id: 15, enable: intersection(permissions, ['APPLY_CALLS']).length }, + { + label: __('Documenti', 'gepafin'), + icon: 'pi pi-folder-open', + href: '/documenti', + id: 16, + enable: intersection(permissions, ['APPLY_CALLS']).length + }, { label: __('Log di Sistema', 'gepafin'), icon: 'pi pi-receipt', 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( +