@visns-studio/visns-components 2.3.13 → 2.4.1
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.
|
@@ -5,11 +5,10 @@ import CmsForm from '../Form';
|
|
|
5
5
|
|
|
6
6
|
import 'react-confirm-alert/src/react-confirm-alert.css';
|
|
7
7
|
|
|
8
|
-
function CmsDetail({
|
|
8
|
+
function CmsDetail({ setting }) {
|
|
9
9
|
const { dataId } = useParams();
|
|
10
10
|
const navigate = useNavigate();
|
|
11
|
-
const
|
|
12
|
-
const { form } = settings;
|
|
11
|
+
const { form } = setting;
|
|
13
12
|
|
|
14
13
|
return (
|
|
15
14
|
<Reveal effect="fadeInUp">
|
|
@@ -253,9 +253,11 @@ function Navigation({
|
|
|
253
253
|
};
|
|
254
254
|
|
|
255
255
|
const currentUrl = cleanUrl(currentPage);
|
|
256
|
-
const navUrl =
|
|
256
|
+
const navUrl = nav.url
|
|
257
257
|
? cleanUrl(nav.url)
|
|
258
|
-
|
|
258
|
+
? cleanUrl(nav.url)
|
|
259
|
+
: 'dashboard'
|
|
260
|
+
: '';
|
|
259
261
|
|
|
260
262
|
if (
|
|
261
263
|
navUrl === currentUrl ||
|
package/package.json
CHANGED