]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/episodes/ApplyForm.js
improved user context
[alttp.git] / resources / js / components / episodes / ApplyForm.js
index 65befb722b8ef23a9e8c2bce7c55cdf8b7ee3b7f..ce5f88e4f7f9713d41f526a3c19eac65cbca6bb1 100644 (file)
@@ -1,13 +1,13 @@
 import { withFormik } from 'formik';
 import PropTypes from 'prop-types';
 import React from 'react';
-import { Button, Col, Form, Modal, Row } from 'react-bootstrap';
+import { Button, Form, Modal } from 'react-bootstrap';
 import { useTranslation } from 'react-i18next';
 
 import DialogEpisode from './DialogEpisode';
 import laravelErrorsToFormik from '../../helpers/laravelErrorsToFormik';
 import { applicableChannels } from '../../helpers/permissions';
-import { withUser } from '../../helpers/UserContext';
+import { withUser } from '../../hooks/user';
 
 const ApplyForm = ({
        as,
@@ -75,6 +75,7 @@ const ApplyForm = ({
 };
 
 ApplyForm.propTypes = {
+       as: PropTypes.string,
        episode: PropTypes.shape({
        }),
        errors: PropTypes.shape({