1- import React , { useState , Fragment } from " react" ;
2- import { Box , Card , Stack , SvgIcon , Typography , Skeleton , Tooltip } from " @mui/material" ;
3- import { Grid } from " @mui/system" ;
4- import { CippOffCanvas } from " ../CippComponents/CippOffCanvas" ;
5- import { CippPropertyListCard } from " ./CippPropertyListCard" ;
1+ import React , { useState , Fragment } from ' react'
2+ import { Box , Card , Stack , SvgIcon , Typography , Skeleton , Tooltip } from ' @mui/material'
3+ import { Grid } from ' @mui/system'
4+ import { CippOffCanvas } from ' ../CippComponents/CippOffCanvas'
5+ import { CippPropertyListCard } from ' ./CippPropertyListCard'
66
77export const CippInfoBar = ( { data, isFetching } ) => {
8- const [ visibleIndex , setVisibleIndex ] = useState ( null ) ;
8+ const [ visibleIndex , setVisibleIndex ] = useState ( null )
99
1010 return (
1111 < Card >
@@ -16,30 +16,30 @@ export const CippInfoBar = ({ data, isFetching }) => {
1616 size = { { md : 3 , sm : 6 , xs : 12 } }
1717 onClick = { item . offcanvas ? ( ) => setVisibleIndex ( index ) : undefined }
1818 sx = { {
19- cursor : item . offcanvas ? " pointer" : " default" ,
19+ cursor : item . offcanvas ? ' pointer' : ' default' ,
2020 borderBottom : ( theme ) => ( {
2121 xs : `1px solid ${ theme . palette . divider } ` ,
22- md : " none" ,
22+ md : ' none' ,
2323 } ) ,
2424 borderRight : ( theme ) => ( {
2525 md : `1px solid ${ theme . palette . divider } ` ,
2626 } ) ,
27- " &:nth-of-type(3)" : {
27+ ' &:nth-of-type(3)' : {
2828 borderBottom : ( theme ) => ( {
2929 xs : `1px solid ${ theme . palette . divider } ` ,
30- sm : " none" ,
30+ sm : ' none' ,
3131 } ) ,
3232 } ,
33- " &:nth-of-type(4)" : {
34- borderBottom : " none" ,
35- borderRight : " none" ,
33+ ' &:nth-of-type(4)' : {
34+ borderBottom : ' none' ,
35+ borderRight : ' none' ,
3636 } ,
3737 } }
3838 >
3939 < Stack alignItems = "center" direction = "row" spacing = { 2 } sx = { { p : 2 , minWidth : 0 } } >
4040 { item ?. icon && (
4141 < SvgIcon
42- color = { item . color ? item . color : " primary" }
42+ color = { item . color ? item . color : ' primary' }
4343 fontSize = "small"
4444 sx = { { flexShrink : 0 } }
4545 >
@@ -51,57 +51,57 @@ export const CippInfoBar = ({ data, isFetching }) => {
5151 < Box
5252 sx = { ( ) => {
5353 if ( ! item ?. icon ) {
54- return { pl : 2 , minWidth : 0 , flex : 1 } ;
54+ return { pl : 2 , minWidth : 0 , flex : 1 }
5555 }
56- return { minWidth : 0 , flex : 1 } ;
56+ return { minWidth : 0 , flex : 1 }
5757 } }
5858 >
5959 < Typography
6060 color = "text.secondary"
6161 variant = "overline"
6262 sx = { {
63- display : " block" ,
64- overflow : " hidden" ,
65- textOverflow : " ellipsis" ,
66- whiteSpace : " nowrap" ,
63+ display : ' block' ,
64+ overflow : ' hidden' ,
65+ textOverflow : ' ellipsis' ,
66+ whiteSpace : ' nowrap' ,
6767 } }
6868 >
6969 { item . name }
7070 </ Typography >
7171 < Typography
7272 variant = "h6"
73- sx = { { overflow : " hidden" , textOverflow : " ellipsis" , whiteSpace : " nowrap" } }
73+ sx = { { overflow : ' hidden' , textOverflow : ' ellipsis' , whiteSpace : ' nowrap' } }
7474 >
75- { isFetching ? < Skeleton width = { " 100%" } /> : item . data }
75+ { isFetching ? < Skeleton width = { ' 100%' } /> : item . data }
7676 </ Typography >
7777 </ Box >
7878 </ Tooltip >
7979 ) : (
8080 < Box
8181 sx = { ( ) => {
8282 if ( ! item ?. icon ) {
83- return { pl : 2 , minWidth : 0 , flex : 1 } ;
83+ return { pl : 2 , minWidth : 0 , flex : 1 }
8484 }
85- return { minWidth : 0 , flex : 1 } ;
85+ return { minWidth : 0 , flex : 1 }
8686 } }
8787 >
8888 < Typography
8989 color = "text.secondary"
9090 variant = "overline"
9191 sx = { {
92- display : " block" ,
93- overflow : " hidden" ,
94- textOverflow : " ellipsis" ,
95- whiteSpace : " nowrap" ,
92+ display : ' block' ,
93+ overflow : ' hidden' ,
94+ textOverflow : ' ellipsis' ,
95+ whiteSpace : ' nowrap' ,
9696 } }
9797 >
9898 { item . name }
9999 </ Typography >
100100 < Typography
101101 variant = "h6"
102- sx = { { overflow : " hidden" , textOverflow : " ellipsis" , whiteSpace : " nowrap" } }
102+ sx = { { overflow : ' hidden' , textOverflow : ' ellipsis' , whiteSpace : ' nowrap' } }
103103 >
104- { isFetching ? < Skeleton width = { " 100%" } /> : item . data }
104+ { isFetching ? < Skeleton width = { ' 100%' } /> : item . data }
105105 </ Typography >
106106 </ Box >
107107 ) }
@@ -110,17 +110,17 @@ export const CippInfoBar = ({ data, isFetching }) => {
110110 { item . offcanvas && (
111111 < >
112112 < CippOffCanvas
113- title = { item ?. offcanvas ?. title || " Details" }
113+ title = { item ?. offcanvas ?. title || ' Details' }
114114 size = "md"
115115 visible = { visibleIndex === index }
116116 onClose = { ( ) => setVisibleIndex ( null ) }
117117 >
118118 < Box
119119 sx = { {
120- overflowY : " auto" ,
121- maxHeight : " 100%" ,
122- display : " flex" ,
123- flexDirection : " column" ,
120+ overflowY : ' auto' ,
121+ maxHeight : ' 100%' ,
122+ display : ' flex' ,
123+ flexDirection : ' column' ,
124124 } }
125125 >
126126 < Grid container spacing = { 1 } >
@@ -143,5 +143,5 @@ export const CippInfoBar = ({ data, isFetching }) => {
143143 ) ) }
144144 </ Grid >
145145 </ Card >
146- ) ;
147- } ;
146+ )
147+ }
0 commit comments