fix(ui): make the shared three-part profile the canonical header
This commit is contained in:
@@ -35,7 +35,6 @@ import {
|
||||
ResizableViewport,
|
||||
SceneAnnotation,
|
||||
HeaderNavigation,
|
||||
HeaderProfile,
|
||||
HeaderWorkspace,
|
||||
Icon,
|
||||
IconButton,
|
||||
@@ -2163,7 +2162,6 @@ export function CatalogApp() {
|
||||
}
|
||||
right={
|
||||
<UserProfileMenu
|
||||
variant="header"
|
||||
triggerLabel="Профиль"
|
||||
triggerIcon="inbox"
|
||||
displayName={sessionProfile?.user?.displayName || "Профиль"}
|
||||
|
||||
@@ -15,7 +15,7 @@ export function EnvironmentCatalogDemo() {
|
||||
useEffect(() => () => urls.current.forEach(url => URL.revokeObjectURL(url)), []);
|
||||
return <>
|
||||
<div className="catalog-environment-actions">
|
||||
<UserProfileMenu displayName="DC" subtitle="Каталог компонентов" triggerLabel={null}
|
||||
<UserProfileMenu variant="default" displayName="DC" subtitle="Каталог компонентов" triggerLabel={null}
|
||||
actions={[{ id: "settings", label: "Настройки", icon: "settings", onSelect: () => setOpen(true) }]} />
|
||||
<Button variant="primary" tone="neutral" onClick={() => setOpen(true)}>Настройки окружения</Button>
|
||||
<Button variant="primary" tone="neutral" disabled>Неактивное действие</Button>
|
||||
|
||||
Reference in New Issue
Block a user