Make AppBar stick on scroll
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import React, { createElement, forwardRef } from 'react'
|
import React, { createElement, forwardRef, Fragment } from 'react'
|
||||||
import {
|
import {
|
||||||
AppBar as RAAppBar,
|
AppBar as RAAppBar,
|
||||||
MenuItemLink,
|
MenuItemLink,
|
||||||
@@ -131,6 +131,8 @@ const CustomUserMenu = ({ onClick, ...rest }) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const AppBar = (props) => <RAAppBar {...props} userMenu={<CustomUserMenu />} />
|
const AppBar = (props) => (
|
||||||
|
<RAAppBar {...props} container={Fragment} userMenu={<CustomUserMenu />} />
|
||||||
|
)
|
||||||
|
|
||||||
export default AppBar
|
export default AppBar
|
||||||
|
|||||||
Reference in New Issue
Block a user