From d044454ea4e58609e6ee2de06ae8102f4e18514a Mon Sep 17 00:00:00 2001 From: Noemi Date: Mon, 30 Jun 2025 15:41:08 +0200 Subject: [PATCH] add role to button --- .../components/AllBandiPreInstructorTableAsync/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/BandiPreInstructor/components/AllBandiPreInstructorTableAsync/index.js b/src/pages/BandiPreInstructor/components/AllBandiPreInstructorTableAsync/index.js index 50c3c0a..853808e 100644 --- a/src/pages/BandiPreInstructor/components/AllBandiPreInstructorTableAsync/index.js +++ b/src/pages/BandiPreInstructor/components/AllBandiPreInstructorTableAsync/index.js @@ -24,7 +24,7 @@ import ProperBandoLabel from '../../../../components/ProperBandoLabel'; import { Dropdown } from 'primereact/dropdown'; import { Tag } from 'primereact/tag'; import { Calendar } from 'primereact/calendar'; -import { storeSet } from '../../../../store'; +import { storeGet, storeSet } from '../../../../store'; const AllBandiPreInstructorTableAsync = () => { @@ -46,6 +46,8 @@ const AllBandiPreInstructorTableAsync = () => { }); const statuses = ['DRAFT','PUBLISH','EXPIRED']; + const role = storeGet('getRole') + const getPaginationQuery = useCallback(() => getQueryParamsForPaginatedEndpoint(lazyState, statuses, 'id'), [lazyState]); const onPage = (event) => { @@ -94,7 +96,10 @@ const AllBandiPreInstructorTableAsync = () => {