-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Convert Toolbar
to a function component
#2352
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
Convert Toolbar
to a function component
#2352
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good. I need to load up the branch and make sure that everything works.
} | ||
function handleProjectNameSave() { | ||
const newName = nameInputValue; | ||
if (newName.length > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The handling of 0 length is a bit weird in the current version. If you click outside the input it reverts the text but keeps the input open. It seems like yours does nothing which is probably fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let me know If you want me to change this
Toolbar
to a function component
Hey @lindapaiste! I just updated this with all the suggested changes, please check it out |
@dewanshDT I'm really not sure what our plan is with the toolbar. Like what changes we intend to make and in what order. |
yes I think we should merge this and then resolve the conflicts to apply #2238, and then we can discuss the future changes than we want to make |
Changes:
Rewrote the old class based
Toolbar
to a functional component, along with new test fileI have verified that this pull request:
npm run lint
)npm run test
)develop
branch.