Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On line 77 added diabled button property #61

Open
wants to merge 1 commit into
base: PART_5
Choose a base branch
from

Conversation

Thakur-Sahab-4-5-2000
Copy link

Submit changed to <Button className={classes.buttonSubmit} variant="contained" color="primary" size="large" type="submit" fullWidth disabled={
postData.title === "" ||
postData.message === "" ||
postData.tags === [] ||
postData.selectedFile === ""
}>Submit so user cannot add empty posts in the app

<Button className={classes.buttonSubmit} variant="contained" color="primary" size="large" type="submit" fullWidth>Submit</Button> changed to <Button className={classes.buttonSubmit} variant="contained" color="primary" size="large" type="submit" fullWidth   disabled={
            postData.title === "" ||
            postData.message === "" ||
            postData.tags === [] ||
            postData.selectedFile === ""
          }>Submit</Button> so user cannot add empty posts in the app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant