@visns-studio/visns-components 4.4.7 → 4.4.8

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.
@@ -61,9 +61,8 @@ function Navigation({
61
61
  const [isScrolled, setIsScrolled] = useState(false);
62
62
  const [navData, setNavData] = useState(navConfig);
63
63
 
64
- const appNavClasses = isScrolled
65
- ? styles['navscrolled']
66
- : styles['app-nav'];
64
+ // const appNavClasses = isScrolled ? styles['app-nav'] : styles['app-nav'];
65
+ const appNavClasses = styles['app-nav'];
67
66
 
68
67
  const handleLogout = () => {
69
68
  CustomFetch('/logout', 'GET', {}, () => {
@@ -164,7 +163,6 @@ function Navigation({
164
163
  let navItemClasses;
165
164
 
166
165
  if (n.class.includes('active')) {
167
- console.info(n);
168
166
  navItemClasses =
169
167
  themeType === 'alternate'
170
168
  ? `${styles['nav-item-alternate']} ${styles.active}`
@@ -84,8 +84,6 @@ const Login = ({ logo, providers, setSystemAuth, setUserProfile }) => {
84
84
  if (e) {
85
85
  e.preventDefault();
86
86
 
87
- console.info(location.state);
88
-
89
87
  CustomFetch(
90
88
  '/login/authenticate',
91
89
  'POST',
@@ -133,7 +133,7 @@
133
133
  }
134
134
 
135
135
  .aside {
136
- background: url('../images/loginbg.jpg') no-repeat;
136
+ background: url('../../images/loginbg.jpg') no-repeat;
137
137
  background-size: cover;
138
138
  opacity: 1;
139
139
  position: fixed;
@@ -62,8 +62,6 @@ const GenericAuth = ({
62
62
  if (['Unauthenticatdata.'].includes(error)) {
63
63
  const currentUrl = window.location.pathname;
64
64
 
65
- console.info('aaa');
66
-
67
65
  setIsAuthenticated(false);
68
66
  navigate('/login', { state: { previousUrl: currentUrl } });
69
67
  }
@@ -41,14 +41,12 @@ const renderValue = (field, data) => {
41
41
  if (field.dynamicfield && typeof field.dynamicfield === 'string') {
42
42
  const [table, key] = field.dynamicfield.split('::');
43
43
 
44
- console.info(data, table, key);
45
-
46
44
  if (table && key) {
47
45
  switch (table) {
48
46
  case 'opportunities':
49
47
  return data[table][key];
50
48
  case 'clients':
51
- return data['client'][key];
49
+ return data['client'] ? data['client'][key] : null;
52
50
  default:
53
51
  if (key === 'surname' && !data[key]) {
54
52
  return data['lastname'] || '';
@@ -124,8 +124,6 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
124
124
  const handleAddRowOption = (e) => {
125
125
  e.preventDefault();
126
126
 
127
- console.info(dataField);
128
-
129
127
  // Initialize rows if it doesn't exist
130
128
  if (!dataField.rows) {
131
129
  setDataField((items) => ({
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .visibleMenu {
15
- max-height: 500px; /* Adjust this value based on the expected height of your child menu */
15
+ max-height: 2000px; /* Adjust this value based on the expected height of your child menu */
16
16
  opacity: 1;
17
17
  }
18
18
 
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "react-dom": "^17.0.1"
59
59
  },
60
60
  "name": "@visns-studio/visns-components",
61
- "version": "4.4.7",
61
+ "version": "4.4.8",
62
62
  "description": "Various packages to assist in the development of our Custom Applications.",
63
63
  "main": "index.js",
64
64
  "scripts": {