react-crud-mobile 1.0.598 → 1.0.600

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.
@@ -26,15 +26,12 @@ export default function UIListRow(props: UIListRowType) {
26
26
  const styles = props.styles;
27
27
  const cols = Utils.nvl(original.cols, 1);
28
28
  const rowWidth = Math.floor(100 / cols) + '%';
29
-
30
29
  const [scope] = useState(ScopeUtils.create(row));
31
30
 
32
- const getStyle = (key: string, extra?: any) => {
33
- return scope.getStyle(key, { ...extra, ...styles[key] });
34
- };
31
+ console.log(styles);
35
32
 
36
33
  const getRowStyle = (extra?: any) => {
37
- let row = getStyle('row', {});
34
+ let row = scope.getStyle('row', { ...extra, ...styles.row });
38
35
 
39
36
  if (cols > 0) {
40
37
  row.width = rowWidth;