Merge pull request #93 from Yash-R/new
Fixed PropOver
This commit was merged in pull request #93.
This commit is contained in:
@@ -25,7 +25,6 @@ import logo from 'src/layouts/MainLayout/Logo_2.jpg'
|
|||||||
const MainLayout = ({ children}) => {
|
const MainLayout = ({ children}) => {
|
||||||
const { logIn, logOut, isAuthenticated, currentUser } = useAuth()
|
const { logIn, logOut, isAuthenticated, currentUser } = useAuth()
|
||||||
const {data, loading} = useQuery(QUERY, {variables: {id: currentUser?.sub}})
|
const {data, loading} = useQuery(QUERY, {variables: {id: currentUser?.sub}})
|
||||||
console.log(data?.user?.name);
|
|
||||||
const [isOpen, setIsOpen] = useState(false)
|
const [isOpen, setIsOpen] = useState(false)
|
||||||
const [anchorEl, setAnchorEl] = useState(null)
|
const [anchorEl, setAnchorEl] = useState(null)
|
||||||
const [popoverId, setPopoverId] = useState(undefined)
|
const [popoverId, setPopoverId] = useState(undefined)
|
||||||
@@ -98,11 +97,11 @@ const MainLayout = ({ children}) => {
|
|||||||
onClose={closePopover}
|
onClose={closePopover}
|
||||||
anchorOrigin={{
|
anchorOrigin={{
|
||||||
vertical: 'bottom',
|
vertical: 'bottom',
|
||||||
horizontal: 'left',
|
horizontal: 'right',
|
||||||
}}
|
}}
|
||||||
transformOrigin={{
|
transformOrigin={{
|
||||||
vertical: 'top',
|
vertical: 'top',
|
||||||
horizontal: 'left',
|
horizontal: 'right',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user