]> git.localhorst.tv Git - alttp.git/commitdiff
fix some prop types
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 25 Mar 2022 12:08:44 +0000 (13:08 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 25 Mar 2022 12:08:44 +0000 (13:08 +0100)
resources/js/components/users/EditNicknameForm.js
resources/js/components/users/EditStreamLinkForm.js

index 3f6a5bb11aa61fee3e583a872649c8b91fe86a98..56176f26dce048bb21fde3b19e1bc497b67ff6d7 100644 (file)
@@ -66,7 +66,7 @@ EditStreamLinkForm.propTypes = {
                nickname: PropTypes.bool,
        }),
        user: PropTypes.shape({
-               username: PropTypes.bool,
+               username: PropTypes.string,
        }),
        values: PropTypes.shape({
                nickname: PropTypes.string,
@@ -74,7 +74,7 @@ EditStreamLinkForm.propTypes = {
 };
 
 export default withFormik({
-       displayName: 'SeedForm',
+       displayName: 'NicknameForm',
        enableReinitialize: true,
        handleSubmit: async (values, actions) => {
                const { user_id, nickname } = values;
index 78219ac2f3a498ea64bbaa54f296a533838d3d3b..0bc60a5fba85bb42af4b0f6d0c3496e6209c4974 100644 (file)
@@ -70,7 +70,7 @@ EditStreamLinkForm.propTypes = {
 };
 
 export default withFormik({
-       displayName: 'SeedForm',
+       displayName: 'StreamLinkForm',
        enableReinitialize: true,
        handleSubmit: async (values, actions) => {
                const { user_id, stream_link } = values;