utopia-ui 3.0.0-alpha.167 → 3.0.0-alpha.169

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 CHANGED
@@ -3907,15 +3907,15 @@ function NavBar(_a) {
3907
3907
  }, [userProfile]);
3908
3908
  var nameRef = useRef(null);
3909
3909
  var _d = useState(0), nameWidth = _d[0], setNameWidth = _d[1];
3910
- useEffect(function () {
3911
- nameRef && setNameWidth(nameRef.current.scrollWidth);
3912
- }, [nameRef, appName]);
3913
3910
  var location = useLocation();
3914
- var _e = useState(true), showNav = _e[0], setShowNav = _e[1];
3911
+ var _e = useState(false), showNav = _e[0], setShowNav = _e[1];
3912
+ useEffect(function () {
3913
+ showNav && nameRef && setNameWidth(nameRef.current.scrollWidth);
3914
+ }, [nameRef, appName, showNav]);
3915
3915
  useEffect(function () {
3916
3916
  var params = new URLSearchParams(location.search);
3917
3917
  var embedded = params.get("embedded");
3918
- embedded == "true" && setShowNav(false);
3918
+ embedded != "true" && setShowNav(true);
3919
3919
  }, [location]);
3920
3920
  var onLogout = function () {
3921
3921
  toast.promise(logout(), {