Skip to content

Commit 31a44ba

Browse files
t1m4lctomalaforge
authored andcommitted
refactor: review
1 parent 928ec92 commit 31a44ba

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

apps/rxjs/hold-to-save-btn/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hold to send button
22

3-
> author: thomas-laforge
3+
> author: alcaidio
44
55
### Run Application
66

docs/src/content/docs/challenges/rxjs/49-hold-to-send-btn.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,24 @@ So you're going to take over from him.
2323

2424
> "As a user, I would like to save something by holding down the button for a certain amount of time."
2525
26-
Here the prototype made by Lucie :
26+
Here the prototype made by Lucie:
2727

2828
![prototype gif](../../../../../../docs/src/assets/rxjs/49/prototype.gif)
2929

3030
## Acceptance Criteria
3131

3232
1. We should be able to configure a maintenance duration in milliseconds.
33-
2. Pressing and holding the button triggers the countdown on "mousedown" event.
34-
3. On "mouseleave" or "mouseup" events, the progress bar is reset to 0.
33+
2. Pressing and holding the button triggers the countdown on the `mousedown` event.
34+
3. On `mouseleave` or `mouseup` events, the progress bar is reset to 0.
3535
4. The progress bar representing the remaining relative time should reflect the remaining time.
36-
5. Simulates a backup request when the hold time is over (console log or alert).
36+
5. Simulates a backend request when the hold time is over (console log or alert).
3737
6. You must maximize the use of RxJS operators and be as declarative as possible.
3838

3939
<details>
4040
<summary>Tips 🤫 (if you really need it and after careful consideration)</summary>
4141
<ul>
42-
<li>Create the `HolddableDirective`</li>
43-
<li>Use `TemplateRef` and `fromEvent` from rxjs to catch events OR `@HostListener`</li>
44-
<li>Perhaps the following rxjs operators can help you: interval, takeUntil, switchmap, takeWhile/retry...</li>
42+
<li>Create the `HoldableDirective`</li>
43+
<li>Use `TemplateRef` and `fromEvent` from RxJS to catch events or `@HostListener`</li>
44+
<li>Perhaps the following RxJS operators can help you: interval, takeUntil, switchMap, takeWhile/retry...</li>
4545
</ul>
4646
</details>

0 commit comments

Comments
 (0)