We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
heymd/src/components/Navbar.js
Line 294 in 1395533
可以試試看這種寫法:
// 原本 const handleUserDelete = (e, email) => { e.stopPropagation(); e.preventDefault(); dispatch({ type: "REMOVE_COLLABORATOR_REQUEST", payload: { email, postId: roomId ? roomId : null, }, }); }; // 後來 const handleUserDelete = email => e => { e.stopPropagation(); e.preventDefault(); dispatch({ type: "REMOVE_COLLABORATOR_REQUEST", payload: { email, postId: roomId ? roomId : null, }, }); }
使用的時候會變這樣:
// 原本 <i className="far fa-trash-alt deleteIcon" onClick={(e) => { handleUserDelete(e, i.userEmail); }} /> // 後來 <i className="far fa-trash-alt deleteIcon" onClick={handleUserDelete(i.userEmail)} />
同時附上 commits 中的 comments
The text was updated successfully, but these errors were encountered:
create different views for different roles
1395533
Auto check this commits(3654437cfa6)
Sorry, something went wrong.
No branches or pull requests
heymd/src/components/Navbar.js
Line 294 in 1395533
可以試試看這種寫法:
使用的時候會變這樣:
同時附上 commits 中的 comments
The text was updated successfully, but these errors were encountered: