slice-machine-ui 1.19.3-dev-environments.1 → 1.19.3-dev-environments.3
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/components/Navigation/index.tsx +4 -10
- package/out/404.html +1 -1
- package/out/_next/static/chunks/pages/{_app-4107f5b6d5c9e005.js → _app-516a75ba6d6ba61b.js} +1 -1
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +4 -4
- package/src/components/SideNav/SideNavEnvironmentSelector.css.ts +2 -2
- package/src/components/SideNav/SideNavEnvironmentSelector.tsx +3 -3
- /package/out/_next/static/{fFH-eToEa3_ALxXXW3YKD → K8bOF9U1xHCfhbL7w-t-q}/_buildManifest.js +0 -0
- /package/out/_next/static/{fFH-eToEa3_ALxXXW3YKD → K8bOF9U1xHCfhbL7w-t-q}/_ssgManifest.js +0 -0
|
@@ -72,13 +72,13 @@ export const SideNavEnvironmentSelector: FC<SideNavEnvironmentSelectorProps> = (
|
|
|
72
72
|
<Box flexShrink={0}>
|
|
73
73
|
{variant === "unauthorized" ? (
|
|
74
74
|
<IconButton icon="arrowForward" onClick={onLogInClick} />
|
|
75
|
-
) : (
|
|
75
|
+
) : !activeEnvironment || environments.length > 1 ? (
|
|
76
76
|
<EnvironmentDropdownMenu
|
|
77
77
|
environments={environments}
|
|
78
78
|
activeEnvironment={activeEnvironment}
|
|
79
79
|
onSelect={onSelect}
|
|
80
80
|
/>
|
|
81
|
-
)}
|
|
81
|
+
) : null}
|
|
82
82
|
</Box>
|
|
83
83
|
</Box>
|
|
84
84
|
);
|
|
@@ -97,7 +97,7 @@ const EnvironmentDropdownMenu: FC<EnvironmentDropdownMenuProps> = (props) => {
|
|
|
97
97
|
<DropdownMenuTrigger>
|
|
98
98
|
<IconButton icon="unfoldMore" />
|
|
99
99
|
</DropdownMenuTrigger>
|
|
100
|
-
<DropdownMenuContent align="end">
|
|
100
|
+
<DropdownMenuContent align="end" minWidth={256}>
|
|
101
101
|
<DropdownMenuLabel>Regular Environments</DropdownMenuLabel>
|
|
102
102
|
{environments.map((environment) =>
|
|
103
103
|
environment.kind !== "dev" ? (
|
|
File without changes
|
|
File without changes
|