@@ -2,9 +2,9 @@ import NavigationBar, { NAVIGATION_CONTENT_HEIGHT_GUTTERS } from '../../../core/
2
2
import PlatformNavigationUserAvatar from './PlatformNavigationUserAvatar' ;
3
3
import PlatformSearch from '../platformSearch/PlatformSearch' ;
4
4
import PlatformNavigationMenuButton from './PlatformNavigationMenuButton' ;
5
- import { Box , Slide , Theme , useMediaQuery } from '@mui/material' ;
5
+ import { Box , MenuItem , Slide , Theme , useMediaQuery } from '@mui/material' ;
6
6
import React , { cloneElement , ReactElement , Ref , useLayoutEffect , useRef , useState } from 'react' ;
7
- import PlatformNavigationUserMenu from './PlatformNavigationUserMenu' ;
7
+ import PlatformNavigationUserMenu , { UserMenuDivider } from './PlatformNavigationUserMenu' ;
8
8
import UserMenuPlatformNavigationSegment from './platformNavigationMenu/UserMenuPlatformNavigationSegment' ;
9
9
import NavigationBarSideContent from '../../../core/ui/navigation/NavigationBarSideContent' ;
10
10
import { gutters } from '../../../core/ui/grid/utils' ;
@@ -15,6 +15,7 @@ import { GUTTER_PX } from '../../../core/ui/grid/constants';
15
15
import PlatformNavigationUncollapse from './PlatformNavigationUncollapse' ;
16
16
import SkipLink from '../../../core/ui/keyboardNavigation/SkipLink' ;
17
17
import { useTranslation } from 'react-i18next' ;
18
+ import PoweredBy from '../poweredBy/PoweredBy' ;
18
19
19
20
export interface PlatformNavigationBarProps {
20
21
breadcrumbs ?: ReactElement < UncontrolledExpandable & { ref : Ref < Collapsible > } > ;
@@ -99,8 +100,21 @@ const PlatformNavigationBar = ({ breadcrumbs }: PlatformNavigationBarProps) => {
99
100
</ PlatformSearch >
100
101
{ ! isMobile && < PlatformNavigationMenuButton /> }
101
102
< PlatformNavigationUserAvatar drawer = { isMobile } >
102
- < PlatformNavigationUserMenu surface = { ! isMobile } >
103
+ < PlatformNavigationUserMenu
104
+ surface = { ! isMobile }
105
+ footer = {
106
+ isMobile && (
107
+ < >
108
+ < UserMenuDivider />
109
+ < Box component = { MenuItem } paddingY = { gutters ( 0.5 ) } >
110
+ < PoweredBy preview />
111
+ </ Box >
112
+ </ >
113
+ )
114
+ }
115
+ >
103
116
{ isMobile && < UserMenuPlatformNavigationSegment /> }
117
+ { isMobile && < UserMenuDivider /> }
104
118
</ PlatformNavigationUserMenu >
105
119
</ PlatformNavigationUserAvatar >
106
120
</ Box >
0 commit comments