@visns-studio/visns-components 2.1.3 → 2.1.4
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.
|
@@ -79,31 +79,16 @@ function GenericIndex({ setting, userProfile }) {
|
|
|
79
79
|
config.settings && (
|
|
80
80
|
<>
|
|
81
81
|
<div className="grid">
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<div className="
|
|
85
|
-
<
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/>
|
|
91
|
-
</div>
|
|
92
|
-
<div className="grid__subcontent">
|
|
93
|
-
<Table
|
|
94
|
-
{...config}
|
|
95
|
-
gridHeight={windowHeight * 0.65}
|
|
96
|
-
setConfig={setConfig}
|
|
97
|
-
setTotal={setTotal}
|
|
98
|
-
style={
|
|
99
|
-
userProfile?.settings
|
|
100
|
-
?.style || {}
|
|
101
|
-
}
|
|
102
|
-
/>
|
|
103
|
-
</div>
|
|
82
|
+
{subnav && subnav.length > 0 ? (
|
|
83
|
+
<div className="grid__subrow">
|
|
84
|
+
<div className="grid__subnav">
|
|
85
|
+
<TableFilter
|
|
86
|
+
filters={subnav}
|
|
87
|
+
setFilters={setSubnav}
|
|
88
|
+
setSettings={setConfig}
|
|
89
|
+
/>
|
|
104
90
|
</div>
|
|
105
|
-
|
|
106
|
-
<div className="grid__full">
|
|
91
|
+
<div className="grid__subcontent">
|
|
107
92
|
<Table
|
|
108
93
|
{...config}
|
|
109
94
|
gridHeight={windowHeight * 0.65}
|
|
@@ -115,8 +100,20 @@ function GenericIndex({ setting, userProfile }) {
|
|
|
115
100
|
}
|
|
116
101
|
/>
|
|
117
102
|
</div>
|
|
118
|
-
|
|
119
|
-
|
|
103
|
+
</div>
|
|
104
|
+
) : (
|
|
105
|
+
<div className="grid__full">
|
|
106
|
+
<Table
|
|
107
|
+
{...config}
|
|
108
|
+
gridHeight={windowHeight * 0.65}
|
|
109
|
+
setConfig={setConfig}
|
|
110
|
+
setTotal={setTotal}
|
|
111
|
+
style={
|
|
112
|
+
userProfile?.settings?.style || {}
|
|
113
|
+
}
|
|
114
|
+
/>
|
|
115
|
+
</div>
|
|
116
|
+
)}
|
|
120
117
|
</div>
|
|
121
118
|
<Outlet />
|
|
122
119
|
</>
|
package/package.json
CHANGED