Compare commits
2 commits
0ae735f286
...
c2c21d1296
Author | SHA1 | Date | |
---|---|---|---|
c2c21d1296 | |||
6bd7e157ee |
2 changed files with 4 additions and 2 deletions
|
@ -89,7 +89,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.carta-theme__default .carta-icons-menu {
|
.carta-theme__default .carta-icons-menu {
|
||||||
@apply border border-solid border-base-content/30;
|
@apply border border-solid border-base-content/30 bg-base-100;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
min-width: 180px;
|
min-width: 180px;
|
||||||
|
|
|
@ -102,7 +102,9 @@ export function sanitizeHtml(s: string): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function formatPatientName(patient: RouterOutput["patient"]["list"]["items"][0]): string {
|
export function formatPatientName(patient: RouterOutput["patient"]["list"]["items"][0]): string {
|
||||||
return `${patient.first_name} ${patient.last_name} (${patient.age})`;
|
let res = `${patient.first_name} ${patient.last_name}`;
|
||||||
|
if (patient.age) res += ` (${patient.age})`;
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function divFloor(a: number, b: number): number {
|
export function divFloor(a: number, b: number): number {
|
||||||
|
|
Loading…
Reference in a new issue