-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(user): water intake reminder (#36)
* feat: water intake reminder * fix: sidebar for water reminder
- Loading branch information
1 parent
2d7f986
commit a91a230
Showing
6 changed files
with
102 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Water Intake Reminder. | ||
|
||
## Description | ||
|
||
This function helps users build a consistent water intake routine, boosting physical well-being during work hours. Each reminder will prompt them to stay hydrated throughout their day, supporting overall health and focus. | ||
|
||
## Usage | ||
|
||
```javascript | ||
import { waterIntakeReminder } from 'world-clockify'; | ||
|
||
const preference = { | ||
wakeUpTime: '08:00', | ||
sleepTime: '12:00', | ||
preferredTimeZone: 'America/New_York', | ||
intakeInterval: 60, | ||
}; | ||
|
||
const waterIntake = waterIntakeReminder(preference); | ||
|
||
console.log(waterIntake); | ||
``` | ||
|
||
## Expected Output | ||
|
||
```bash | ||
{ | ||
'Drink water at 09:30 am', | ||
'Drink water at 10:00 am', | ||
'Drink water at 10:30 am', | ||
'Drink water at 11:00 am', | ||
} | ||
|
||
``` | ||
|
||
## Parameters | ||
|
||
- waterUserPreference(object): User inputs. | ||
|
||
## Returns | ||
|
||
- (object): As a result. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters