]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/pages/TwitchBot.js
improved user context
[alttp.git] / resources / js / pages / TwitchBot.js
index 1bbec76b55d96c43162f65863a7230d26a7d81fd..90ff9d2204f6d6eb8fc07a7ac2ccd368332fc3ce 100644 (file)
@@ -5,11 +5,11 @@ import { useTranslation } from 'react-i18next';
 
 import Controls from '../components/twitch-bot/Controls';
 import { mayManageTwitchBot } from '../helpers/permissions';
-import { useUser } from '../helpers/UserContext';
+import { useUser } from '../hooks/user';
 
 const TwitchBot = () => {
        const { t } = useTranslation();
-       const user = useUser();
+       const { user } = useUser();
 
        return <Container>
                <h1>{t('twitchBot.heading')}</h1>