Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bodhish committed Jun 12, 2021
1 parent b046bf7 commit 870f748
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 18 deletions.
45 changes: 41 additions & 4 deletions package-lock.json

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

18 changes: 18 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -347,3 +347,21 @@
.copy-to-cb {
padding-left: 5px;
}

@screen md {
* {
scrollbar-width: thin;
scrollbar-color: theme(colors.gray.500) theme(colors.gray.100);
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: theme(colors.gray.100);
}
::-webkit-scrollbar-thumb {
background-color: theme(colors.gray.500);
border-radius: 6px;
border: 3px solid theme(colors.gray.100);
}
}
2 changes: 1 addition & 1 deletion src/Components/Facility/BedTypeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const BedTypeCard = (props: BedTypeProps) => {
</div>
<div className="text-xs text-gray-600 mt-2">
<i className="fas fa-history text-sm pr-2"></i>
{moment(props.modified_date).startOf("hour").fromNow()}
{props.modified_date && moment(props.modified_date).fromNow()}
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Facility/HospitalList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ const HospitalListPage = (props: any) => {
)}
<div className="text-xs text-gray-600 mt-2 inline-flex float-right">
<i className="fas fa-history text-sm pr-2"></i>
{" " +
moment(facility.modified_date).startOf("hour").fromNow()}
{facility.modified_date &&
moment(facility.modified_date).fromNow()}
</div>
<div className="font-black text-2xl capitalize mt-2">
{facility.name}
Expand Down
16 changes: 11 additions & 5 deletions src/Components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,17 @@ export const PatientManager = (props: any) => {
)}
{(!patient.last_consultation ||
patient.last_consultation?.facility !== patient.facility) && (
<Badge
color="red"
icon="notes-medical"
text="No Consultation Filed"
/>
<span className="relative inline-flex">
<Badge
color="red"
icon="notes-medical"
text="No Consultation Filed"
/>
<span className="flex absolute h-3 w-3 top-0 right-0 -mt-1 -mr-1">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75"></span>
<span className="relative inline-flex rounded-full h-3 w-3 bg-red-600"></span>
</span>
</span>
)}
</div>
<div className="px-2">
Expand Down
3 changes: 0 additions & 3 deletions src/Components/Users/UserAdd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,6 @@ export const UserAdd = (props: UserProps) => {
);
if (altPhoneNumber) {
alt_is_valid = altPhoneNumber.isValid();
if (alt_is_valid) {
alt_is_valid = altPhoneNumber.getType() === "MOBILE";
}
}
}
if (!state.form[field] || !alt_is_valid) {
Expand Down
3 changes: 0 additions & 3 deletions src/Components/Users/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ export default function UserProfile() {
);
if (altPhoneNumber) {
alt_is_valid = altPhoneNumber.isValid();
if (alt_is_valid) {
alt_is_valid = altPhoneNumber.getType() === "MOBILE";
}
}
}

Expand Down

0 comments on commit 870f748

Please sign in to comment.