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