Skip to content

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

Merged
BrunoQuaresma merged 11 commits into
mainfrom
bq/improve-create-workspace-flow
May 24, 2022
Merged

refactor: Update create workspace flow to allow creation from the workspaces page#1684
BrunoQuaresma merged 11 commits into
mainfrom
bq/improve-create-workspace-flow

Conversation

@BrunoQuaresma

@BrunoQuaresma BrunoQuaresma commented May 23, 2022

Copy link
Copy Markdown
Contributor

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
return (
<div className={styles.footer}>
<Button className={styles.button} onClick={onCancel} variant="outlined">
<Button type="button" className={styles.button} onClick={onCancel} variant="outlined">

@greyscaled greyscaled May 23, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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
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