File tree Expand file tree Collapse file tree 6 files changed +443
-320
lines changed
scp-teacher-repo/src/components Expand file tree Collapse file tree 6 files changed +443
-320
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ export const MENU_CONFIG = {
88 link : '/centers' ,
99 roles : [ Role . ADMIN , Role . CENTRAL_ADMIN ] ,
1010 } ,
11- batch : {
12- title : 'SIDEBAR.BATCH' ,
13- icon : '/images/centers.svg' ,
14- link : '/batch' ,
15- roles : [ Role . ADMIN , Role . CENTRAL_ADMIN ] ,
16- } ,
11+ // batch: {
12+ // title: 'SIDEBAR.BATCH',
13+ // icon: '/images/centers.svg',
14+ // link: '/batch',
15+ // roles: [Role.ADMIN, Role.CENTRAL_ADMIN],
16+ // },
1717 manageUsers : {
1818 title : 'SIDEBAR.MANAGE_USERS' ,
1919 icon : '/images/group.svg' ,
Original file line number Diff line number Diff line change @@ -168,20 +168,20 @@ const Centers = () => {
168168 //set 2 grid layout
169169 let alterUISchema = responseForm ?. uiSchema ;
170170 alterUISchema [ 'ui:order' ] = [
171- "name" ,
172- "center_type" ,
173171 "state" ,
174172 "district" ,
175173 "block" ,
176174 "village" ,
175+ "board" ,
176+ "medium" ,
177+ "grade" ,
178+ "name" ,
179+ "center_type" ,
177180 "address" ,
178181 "image" ,
179182 "google_map_link" ,
180183 'industry' ,
181- "catchment_area" ,
182- "board" ,
183- "medium" ,
184- "grade" ,
184+ "catchment_area"
185185 ] ;
186186 alterUISchema = enhanceUiSchemaWithGrid ( alterUISchema ) ;
187187
Original file line number Diff line number Diff line change @@ -423,12 +423,18 @@ const Header: React.FC<HeaderProps> = ({ toggleDrawer, openDrawer }) => {
423423 if ( storedTenantData ) {
424424 try {
425425 const parsedTenantData = JSON . parse ( storedTenantData ) ;
426- setTenantData ( parsedTenantData ) ;
426+
427+ // Filter out pragyanpath tenant
428+ const filteredTenantData = parsedTenantData . filter (
429+ ( tenant : any ) => tenant ?. tenantName ?. toLowerCase ( ) !== 'pragyanpath'
430+ ) ;
431+
432+ setTenantData ( filteredTenantData ) ;
427433
428434 // Show switch button if there are multiple tenants or multiple roles in any tenant
429435 const shouldShowButton =
430- parsedTenantData . length > 1 ||
431- parsedTenantData . some ( ( tenant : any ) => tenant ?. roles ?. length > 1 ) ;
436+ filteredTenantData . length > 1 ||
437+ filteredTenantData . some ( ( tenant : any ) => tenant ?. roles ?. length > 1 ) ;
432438 setShowSwitchButton ( shouldShowButton ) ;
433439 } catch ( error ) {
434440 console . error ( 'Error parsing tenantData:' , error ) ;
Original file line number Diff line number Diff line change 819819 "DISTRICT" : " District" ,
820820 "DISTRICTS" : " Districts" ,
821821 "STATE" : " State" ,
822- "PLEASE_GO_BACK_MSG" : " Please go back after selection to proceed further"
822+ "PLEASE_GO_BACK_MSG" : " Please go back after selection to proceed further" ,
823+ "NO_STATES_FOUND" : " No States found" ,
824+ "NO_DISTRICTS_FOUND" : " No Districts found" ,
825+ "NO_BLOCKS_FOUND" : " No Blocks found" ,
826+ "NO_VILLAGES_FOUND" : " No Villages found"
827+
823828 },
824829 "YOUTHNET_CAMP_DETAILS" : {
825830 "SUBMISSION" : " Submission" ,
Original file line number Diff line number Diff line change @@ -92,12 +92,17 @@ const Header: React.FC<HeaderProps> = ({ toggleDrawer, openDrawer }) => {
9292 if ( storedTenantData ) {
9393 try {
9494 const parsedTenantData = JSON . parse ( storedTenantData ) ;
95- setTenantData ( parsedTenantData ) ;
95+ const filteredTenantData = parsedTenantData . filter (
96+ ( tenant : any ) => tenant ?. tenantName ?. toLowerCase ( ) !== 'pragyanpath'
97+ ) ;
98+
99+ setTenantData ( filteredTenantData ) ;
100+
96101
97102 // Show switch button if there are multiple tenants or multiple roles in any tenant
98103 const shouldShowButton =
99- parsedTenantData . length > 1 ||
100- parsedTenantData . some ( ( tenant : any ) => tenant ?. roles ?. length > 1 ) ;
104+ filteredTenantData . length > 1 ||
105+ filteredTenantData . some ( ( tenant : any ) => tenant ?. roles ?. length > 1 ) ;
101106 setShowSwitchButton ( shouldShowButton ) ;
102107 } catch ( error ) {
103108 console . error ( 'Error parsing tenantData:' , error ) ;
You can’t perform that action at this time.
0 commit comments