Skip to content

refactor: Update create workspace flow to allow creation from the workspaces page #1684

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

Merged
merged 11 commits into from
May 24, 2022

Conversation

BrunoQuaresma
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma commented May 23, 2022

Related to #1638

PS: This is only about the flow, a major "redesign" will come in a next PR.

@BrunoQuaresma BrunoQuaresma requested a review from a team as a code owner May 23, 2022 19:54
@BrunoQuaresma BrunoQuaresma self-assigned this May 23, 2022
@@ -35,7 +35,7 @@ export const FormFooter: React.FC<FormFooterProps> = ({
const styles = useStyles()
return (
<div className={styles.footer}>
<Button className={styles.button} onClick={onCancel} variant="outlined">
<Button type="button" className={styles.button} onClick={onCancel} variant="outlined">
Copy link
Contributor

@greyscaled greyscaled May 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question(blocking): Why is type="button" needed here -- is it causing accidental submit ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, any button inside a form submits the form. I thought MUI would add the type="button" automatically but it does not so I have to explicitly say type="button".

@BrunoQuaresma BrunoQuaresma requested a review from greyscaled May 24, 2022 12:36
@BrunoQuaresma BrunoQuaresma merged commit fcd610e into main May 24, 2022
@BrunoQuaresma BrunoQuaresma deleted the bq/improve-create-workspace-flow branch May 24, 2022 13:37
kylecarbs pushed a commit that referenced this pull request Jun 10, 2022
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.

3 participants