Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a77318f
Beging work hacking patient registration.
schlagercollin Feb 19, 2021
cceb08d
Add user registration.
schlagercollin Feb 28, 2021
5ca4bf2
Add medication.
schlagercollin Feb 28, 2021
3dd0f80
Added iOS dynamic link.
schlagercollin Mar 2, 2021
a9b6470
Update user card style.
schlagercollin Mar 2, 2021
993563d
Add simple provider check to sign in.
schlagercollin Mar 2, 2021
7eccc22
Update README.md
cswingle98 Mar 3, 2021
a5c5366
updating firestore
cswingle98 Mar 4, 2021
c6bc7e5
asdferge branch 'master' of https://github.com/schlagercollin/Cardina…
cswingle98 Mar 4, 2021
f676b50
Reconfigure provider check based on new firebase forma.
schlagercollin Mar 4, 2021
51cd6a7
Update user detail card.
schlagercollin Mar 4, 2021
4575db5
Add surveys and last active.
schlagercollin Mar 4, 2021
d3985d3
Temporarily remove lastActive from summary card.
schlagercollin Mar 4, 2021
d8e34ed
Re-add lastActive in summary.
schlagercollin Mar 4, 2021
2535d36
Minor formatting.
schlagercollin Mar 4, 2021
50514e0
Add registration time and UI improvements.
schlagercollin Mar 4, 2021
0c54531
Add remove user base functionality.
schlagercollin Mar 4, 2021
b450b04
Change login button text
schlagercollin Mar 4, 2021
99c64e5
Add resend email link button.
schlagercollin Mar 14, 2021
58368f8
Clean formatting
schlagercollin Mar 14, 2021
f609761
Progress toward medication functionality for provider portal.
schlagercollin Mar 14, 2021
3fc1f36
Added medication view.
schlagercollin Mar 15, 2021
1f75886
Add styling
schlagercollin Mar 15, 2021
2856990
Styling
schlagercollin Mar 15, 2021
553fed5
Fix register patient bug
schlagercollin Mar 15, 2021
4e750ab
Fix bug when medications is represented by empty string
schlagercollin Mar 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add styling
  • Loading branch information
schlagercollin committed Mar 15, 2021
commit 1f75886ca52a4ec921c82cb419f06c9d7f54cc54
5 changes: 5 additions & 0 deletions ReactJS-Project-CardinalKit/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ReactJS-Project-CardinalKit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"react-day-picker": "^7.2.4",
"react-dom": "^16.10.2",
"react-feather": "^1.1.4",
"react-icons": "^4.2.0",
"react-intl": "3.2.1",
"react-redux": "^7.1.1",
"react-router": "5.1.2",
Expand Down
4 changes: 3 additions & 1 deletion ReactJS-Project-CardinalKit/src/components/MedicationCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { defineMessages, FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
import MedicationPage from './MedicationPage';

import { BsUnlock, BsLock } from 'react-icons/bs';

const messages = defineMessages({
medicineName: {
id: 'app.containers.UserCard.name',
Expand Down Expand Up @@ -94,7 +96,7 @@ class MedicationCard extends React.Component {
<div style={{"flexGrow": 1}} className="w-full"></div>
<div onClick={() => this.toggleEdit()} className="bg-blue hover:bg-blue-dark border border-blue rounded mx-2 px-2 py-1 my-1 flex justify-center">
<span className="text-white text-center">
{(!this.state.editing) ? "Unlock" : "Lock"}
{(!this.state.editing) ? <BsLock/> : <BsUnlock/>}
</span>
</div>
<div onClick={() => this.deleteRow()} className="bg-red hover:bg-red-dark border border-red rounded mx-1 px-2 py-1 my-1 flex justify-center"
Expand Down
9 changes: 6 additions & 3 deletions ReactJS-Project-CardinalKit/src/components/MedicationForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ class MedicationForm extends React.Component {
<div className="flex h-full w-full p-2">
<div className="flex-grow flex flex-col justify-between">
<div className="w-full mt-4 mb-4 ml-4">
<h1>Medications for {this.state.firstName + " " + this.state.lastName}</h1>
<h4>Email: {this.state.email}</h4>
<br />
<h2>Medications for <span>{this.state.lastName + ", " + this.state.firstName}</span></h2>
<h4 className="px-2 py-2">Email: {this.state.email}</h4>
<h4 className="px-2">UserID: {this.props.userID}</h4>
<div>
{(Object.entries(medications).length === 0) &&
<p className="mx-10 my-10">No medications registered.</p>
}
{Object.keys(medications).sort().map(function(medication) {
const interval = medications[medication];
return <MedicationCard parentCallback={handleCallback}
Expand Down
6 changes: 3 additions & 3 deletions ReactJS-Project-CardinalKit/src/components/RegisterForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class RegisterForm extends React.Component {
first_name: '',
last_name: '',
email: '',
medication: '',
medications: [],
};

this.state = this.initialState;
Expand Down Expand Up @@ -80,7 +80,7 @@ class RegisterForm extends React.Component {
onChange={this.handleChange}
/>
</div>
<div className="flex flex-col mb-4 mr-4">
{/* <div className="flex flex-col mb-4 mr-4">
<label className="mb-2 font-bold text-lg text-grey-darkest">Medication:</label>
<input
className="border py-2 px-3 text-grey-darkest"
Expand All @@ -89,7 +89,7 @@ class RegisterForm extends React.Component {
value={this.state.medication}
onChange={this.handleChange}
/>
</div>
</div> */}
<button type="submit" value="Register">
<div className="bg-green hover:bg-green-dark border border-green rounded px-2 py-2 my-1 flex flex-wrap justify-center">
<span className="text-white text-center">Register</span>
Expand Down