@visns-studio/visns-components 3.8.1 → 3.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -230,10 +230,10 @@ function GenericIndex({ layout = 'full', setting, userProfile }) {
|
|
|
230
230
|
}
|
|
231
231
|
}, [config, renderTable]);
|
|
232
232
|
|
|
233
|
-
const renderContent = useCallback(
|
|
234
|
-
()
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
const renderContent = useCallback(() => {
|
|
234
|
+
if (subnav?.length > 0) {
|
|
235
|
+
return (
|
|
236
|
+
<div className="grid__subrow">
|
|
237
237
|
<div
|
|
238
238
|
className={`grid__${
|
|
239
239
|
layout === 'full' ? 'subnav' : 'full'
|
|
@@ -246,18 +246,17 @@ function GenericIndex({ layout = 'full', setting, userProfile }) {
|
|
|
246
246
|
type={layout}
|
|
247
247
|
/>
|
|
248
248
|
</div>
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
subnav?.length > 0 ? 'subcontent' : 'full'
|
|
253
|
-
}`}
|
|
254
|
-
>
|
|
255
|
-
{renderContentBasedOnType()}
|
|
249
|
+
<div className="grid__subcontent">
|
|
250
|
+
{renderContentBasedOnType()}
|
|
251
|
+
</div>
|
|
256
252
|
</div>
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
253
|
+
);
|
|
254
|
+
} else {
|
|
255
|
+
return (
|
|
256
|
+
<div className="grid__full">{renderContentBasedOnType()}</div>
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
}, [layout, subnav, setSubnav, setConfig, renderTable]);
|
|
261
260
|
|
|
262
261
|
return (
|
|
263
262
|
<>
|
|
@@ -273,8 +272,9 @@ function GenericIndex({ layout = 'full', setting, userProfile }) {
|
|
|
273
272
|
</div>
|
|
274
273
|
</div>
|
|
275
274
|
</div>
|
|
276
|
-
{renderContent()}
|
|
277
275
|
</div>
|
|
276
|
+
|
|
277
|
+
<div className="grid">{renderContent()}</div>
|
|
278
278
|
<Outlet />
|
|
279
279
|
{setting.functions?.checkboxUpdate && (
|
|
280
280
|
<div className="polActions">
|
package/package.json
CHANGED