utopia-ui 3.0.0-alpha.167 → 3.0.0-alpha.168
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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3911,11 +3911,11 @@ function NavBar(_a) {
|
|
3911
3911
|
nameRef && setNameWidth(nameRef.current.scrollWidth);
|
3912
3912
|
}, [nameRef, appName]);
|
3913
3913
|
var location = useLocation();
|
3914
|
-
var _e = useState(
|
3914
|
+
var _e = useState(false), showNav = _e[0], setShowNav = _e[1];
|
3915
3915
|
useEffect(function () {
|
3916
3916
|
var params = new URLSearchParams(location.search);
|
3917
3917
|
var embedded = params.get("embedded");
|
3918
|
-
embedded
|
3918
|
+
embedded != "true" && setShowNav(true);
|
3919
3919
|
}, [location]);
|
3920
3920
|
var onLogout = function () {
|
3921
3921
|
toast.promise(logout(), {
|