]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/pages/Technique.js
improved user context
[alttp.git] / resources / js / pages / Technique.js
index b3c9d2b5035db4ffd795cf02267a64ffb820c21b..b2da417e988e597f98d378a4bf9ca95e0f0c9470 100644 (file)
@@ -17,13 +17,13 @@ import {
        mayEditContent,
 } from '../helpers/permissions';
 import { getLanguages, getMatchedLocale, getTranslation } from '../helpers/Technique';
-import { useUser } from '../helpers/UserContext';
+import { useUser } from '../hooks/user';
 import i18n from '../i18n';
 
 const Technique = ({ basepath, type }) => {
        const params = useParams();
        const { name } = params;
-       const user = useUser();
+       const { user } = useUser();
 
        const [error, setError] = useState(null);
        const [loading, setLoading] = useState(true);