From 37d40f1ed0c1647ef30fea33477c3bb9eac8c6e8 Mon Sep 17 00:00:00 2001 From: soyuka Date: Wed, 6 Mar 2024 15:31:11 +0100 Subject: [PATCH] fix: use coreadmincontext --- src/AdminGuesser.tsx | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/src/AdminGuesser.tsx b/src/AdminGuesser.tsx index c92ca6c0..191b525b 100644 --- a/src/AdminGuesser.tsx +++ b/src/AdminGuesser.tsx @@ -1,4 +1,5 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'; +import { CoreAdminContext } from 'ra-core'; import PropTypes from 'prop-types'; import { Admin, @@ -175,23 +176,25 @@ const AdminGuesser = ({ ); return ( - - - - {children} - - - + + + + + {children} + + + + ); };