@@ -12,7 +12,7 @@ import SimpleModal from '@/components/SimpleModal';
1212import { serverSideTranslations } from 'next-i18next/serverSideTranslations' ;
1313import editIcon from '../../public/images/editIcon.svg' ;
1414import deleteIcon from '../../public/images/deleteIcon.svg' ;
15- import MapIcon from '@mui/icons-material/Map' ;
15+ // import MapIcon from '@mui/icons-material/Map';
1616import Image from 'next/image' ;
1717import {
1818 extractMatchingKeys ,
@@ -162,6 +162,22 @@ const Centers = () => {
162162
163163 //set 2 grid layout
164164 let alterUISchema = responseForm ?. uiSchema ;
165+ alterUISchema [ 'ui:order' ] = [
166+ "name" ,
167+ "center_type" ,
168+ "state" ,
169+ "district" ,
170+ "block" ,
171+ "village" ,
172+ "address" ,
173+ "image" ,
174+ "google_map_link" ,
175+ 'industry' ,
176+ "catchment_area" ,
177+ "board" ,
178+ "medium" ,
179+ "grade" ,
180+ ] ;
165181 alterUISchema = enhanceUiSchemaWithGrid ( alterUISchema ) ;
166182
167183 setAddUiSchema ( alterUISchema ) ;
@@ -424,35 +440,35 @@ const Centers = () => {
424440
425441 // Define actions
426442 const actions = [
427- {
428- icon : (
429- < Box
430- sx = { {
431- display : 'flex' ,
432- flexDirection : 'column' ,
433- alignItems : 'center' ,
434- cursor : 'pointer' ,
435- // backgroundColor: 'rgb(227, 234, 240)',
436- justifyContent : 'center' ,
437- padding : '10px' ,
438- } }
439- title = "Google Map Link"
440- >
441- < MapIcon />
442- </ Box >
443- ) ,
444- callback : async ( row : any ) => {
445- window . open (
446- row . customFields . find ( ( field ) => field . label === 'GOOGLE_MAP_LINK' )
447- ?. selectedValues ,
448- '_blank' ,
449- 'noopener,noreferrer'
450- ) ;
451- } ,
452- show : ( row ) =>
453- row . customFields . find ( ( field ) => field . label === 'GOOGLE_MAP_LINK' )
454- ?. selectedValues ,
455- } ,
443+ // {
444+ // icon: (
445+ // <Box
446+ // sx={{
447+ // display: 'flex',
448+ // flexDirection: 'column',
449+ // alignItems: 'center',
450+ // cursor: 'pointer',
451+ // // backgroundColor: 'rgb(227, 234, 240)',
452+ // justifyContent: 'center',
453+ // padding: '10px',
454+ // }}
455+ // title="Google Map Link"
456+ // >
457+ // <MapIcon />
458+ // </Box>
459+ // ),
460+ // callback: async (row: any) => {
461+ // window.open(
462+ // row.customFields.find((field) => field.label === 'GOOGLE_MAP_LINK')
463+ // ?.selectedValues,
464+ // '_blank',
465+ // 'noopener,noreferrer'
466+ // );
467+ // },
468+ // show: (row) =>
469+ // row.customFields.find((field) => field.label === 'GOOGLE_MAP_LINK')
470+ // ?.selectedValues,
471+ // },
456472 {
457473 icon : (
458474 < Box
0 commit comments