Skip to content

Commit 138d5e3

Browse files
authored
fix: add comment prompting adding isPending styling (#19)
1 parent 0c6a815 commit 138d5e3

File tree

1 file changed

+2
-0
lines changed
  • exercises/05.actions/01.problem.action-reference/ui

1 file changed

+2
-0
lines changed

exercises/05.actions/01.problem.action-reference/ui/edit-text.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export function EditableText({ id, shipId, initialValue = '' }) {
2222
const buttonRef = useRef(null)
2323
return h(
2424
'div',
25+
// 🐨 set the style prop on this div to decrease the opacity when the form is submitting
26+
// something like { opacity: isPending ? 0.6 : 1 } should work
2527
null,
2628
edit
2729
? h(

0 commit comments

Comments
 (0)