@@ -1226,13 +1226,15 @@ const ReportTable = (props) => {
1226
1226
) }
1227
1227
</ div >
1228
1228
< div
1229
- className = { `${
1230
- isDashboard && props . List ?. length > 0
1231
- ? "min-h-[317px]"
1232
- : currentList ?. length === props . docPerPage
1233
- ? "h-fit"
1234
- : "h-screen"
1235
- } overflow-auto w-full border-b`}
1229
+ className = { `overflow-auto w-full border-b ${
1230
+ props . List ?. length > 0
1231
+ ? isDashboard
1232
+ ? "min-h-[317px]"
1233
+ : currentList ?. length === props . docPerPage
1234
+ ? "h-fit"
1235
+ : "h-screen"
1236
+ : ""
1237
+ } `}
1236
1238
>
1237
1239
< table className = "op-table border-collapse w-full mb-4" >
1238
1240
< thead className = "text-[14px]" >
@@ -2140,6 +2142,24 @@ const ReportTable = (props) => {
2140
2142
) }
2141
2143
</ tbody >
2142
2144
</ table >
2145
+ { props . List ?. length <= 0 && (
2146
+ < div
2147
+ className = { `${
2148
+ isDashboard ? "h-[317px]" : ""
2149
+ } flex flex-col items-center justify-center w-ful bg-base-100 text-base-content rounded-xl py-4`}
2150
+ >
2151
+ < div className = "w-[60px] h-[60px] overflow-hidden" >
2152
+ < img
2153
+ className = "w-full h-full object-contain"
2154
+ src = { pad }
2155
+ alt = "img"
2156
+ />
2157
+ </ div >
2158
+ < div className = "text-sm font-semibold" >
2159
+ { t ( "no-data-avaliable" ) }
2160
+ </ div >
2161
+ </ div >
2162
+ ) }
2143
2163
</ div >
2144
2164
< div className = "op-join flex flex-wrap items-center p-2" >
2145
2165
{ props . List . length > props . docPerPage && (
@@ -2171,24 +2191,6 @@ const ReportTable = (props) => {
2171
2191
</ button >
2172
2192
) }
2173
2193
</ div >
2174
- { props . List ?. length <= 0 && (
2175
- < div
2176
- className = { `${
2177
- isDashboard ? "h-[317px]" : ""
2178
- } flex flex-col items-center justify-center w-ful bg-base-100 text-base-content rounded-xl py-4`}
2179
- >
2180
- < div className = "w-[60px] h-[60px] overflow-hidden" >
2181
- < img
2182
- className = "w-full h-full object-contain"
2183
- src = { pad }
2184
- alt = "img"
2185
- />
2186
- </ div >
2187
- < div className = "text-sm font-semibold" >
2188
- { t ( "no-data-avaliable" ) }
2189
- </ div >
2190
- </ div >
2191
- ) }
2192
2194
< ModalUi
2193
2195
title = { t ( "add-contact" ) }
2194
2196
isOpen = { isContactform }
0 commit comments