Skip to content

Commit d4cd6e9

Browse files
committed
update styles
1 parent e89b0e7 commit d4cd6e9

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

medplum-hello-world/src/components/FleetScannerModal.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export function FleetScannerModal({ opened, onClose, onSuccess }: FleetScannerMo
321321
<Text size="xl" fw={700}>Assignment Complete!</Text>
322322
<Card withBorder padding="md" w="100%">
323323
<Stack gap="xs" align="center">
324-
<Badge color="teal" size="lg">{positionerInput}</Badge>
324+
<Badge size="lg" style={{ backgroundColor: '#007a7a', color: 'white' }}>{positionerInput}</Badge>
325325
<Text size="lg"></Text>
326326
<Text fw={600}>{getPatientName(patient)}</Text>
327327
</Stack>
@@ -374,7 +374,7 @@ export function FleetScannerModal({ opened, onClose, onSuccess }: FleetScannerMo
374374
{!scanning ? (
375375
<Button
376376
fullWidth
377-
color="teal"
377+
style={{ backgroundColor: '#007a7a', color: 'white' }}
378378
leftSection={<IconCamera size={18} />}
379379
onClick={() => startCameraScan('patient-scanner', handlePatientScan)}
380380
>
@@ -396,7 +396,7 @@ export function FleetScannerModal({ opened, onClose, onSuccess }: FleetScannerMo
396396
style={{ flex: 1 }}
397397
/>
398398
<Button
399-
color="teal"
399+
style={{ backgroundColor: '#007a7a', color: 'white' }}
400400
onClick={() => handlePatientScan(patientInput)}
401401
loading={loading}
402402
disabled={!patientInput.trim()}
@@ -419,7 +419,7 @@ export function FleetScannerModal({ opened, onClose, onSuccess }: FleetScannerMo
419419
</Group>
420420
</Card>
421421

422-
<Alert color="teal" title="Step 2: Scan Positioner">
422+
<Alert styles={{ root: { backgroundColor: '#e6f4f4', borderColor: '#007a7a' }, title: { color: '#007a7a' } }} title="Step 2: Scan Positioner">
423423
Now scan the positioner barcode
424424
</Alert>
425425

@@ -431,7 +431,7 @@ export function FleetScannerModal({ opened, onClose, onSuccess }: FleetScannerMo
431431
{!scanning ? (
432432
<Button
433433
fullWidth
434-
color="teal"
434+
style={{ backgroundColor: '#007a7a', color: 'white' }}
435435
leftSection={<IconCamera size={18} />}
436436
onClick={() => startCameraScan('positioner-scanner', handlePositionerScan)}
437437
>
@@ -453,7 +453,7 @@ export function FleetScannerModal({ opened, onClose, onSuccess }: FleetScannerMo
453453
style={{ flex: 1 }}
454454
/>
455455
<Button
456-
color="teal"
456+
style={{ backgroundColor: '#007a7a', color: 'white' }}
457457
onClick={() => handlePositionerScan(positionerInput)}
458458
loading={loading}
459459
disabled={!positionerInput.trim()}

medplum-hello-world/src/components/PatientOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function PatientOverview(): JSX.Element {
3838
leftSection={<IconQrcode size={16} />}
3939
onClick={() => setScanModalOpened(true)}
4040
size="md"
41-
style={{ backgroundColor: '#2e7d32', color: 'white' }}
41+
style={{ backgroundColor: '#007a7a', color: 'white' }}
4242
>
4343
Scan Positioner
4444
</Button>

medplum-hello-world/src/components/PositionerStatus.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function PositionerStatus({ patient, onRefresh }: PositionerStatusProps):
101101
Expired
102102
</Badge>
103103
) : (
104-
<Badge color="green" size="lg">
104+
<Badge size="lg" style={{ backgroundColor: '#007a7a', color: 'white' }}>
105105
Active
106106
</Badge>
107107
)}
@@ -143,14 +143,14 @@ export function PositionerStatus({ patient, onRefresh }: PositionerStatusProps):
143143
<Text
144144
size="sm"
145145
fw={600}
146-
c={p.daysRemaining < 7 ? 'red' : p.daysRemaining < 30 ? 'orange' : 'green'}
146+
style={{ color: p.daysRemaining < 7 ? '#c43d3d' : p.daysRemaining < 30 ? '#b87b00' : '#007a7a' }}
147147
>
148148
{p.daysRemaining} days
149149
</Text>
150150
</Group>
151151
<Progress
152152
value={(p.daysRemaining / 90) * 100}
153-
color={p.daysRemaining < 7 ? 'red' : p.daysRemaining < 30 ? 'orange' : 'green'}
153+
color={p.daysRemaining < 7 ? 'red' : p.daysRemaining < 30 ? 'orange' : '#007a7a'}
154154
size="sm"
155155
/>
156156
</div>

medplum-hello-world/src/components/ScanPositionerModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ export function ScanPositionerModal({ opened, onClose, patient, onSuccess }: Sca
429429
style={{ width: '100%', minHeight: '280px', position: 'relative', borderRadius: 8, overflow: 'hidden' }}
430430
/>
431431
{!scanning && !barcode && (
432-
<Button onClick={startCameraScan} fullWidth color="teal" leftSection={<IconCamera size={18} />}>
432+
<Button onClick={startCameraScan} fullWidth style={{ backgroundColor: '#007a7a', color: 'white' }} leftSection={<IconCamera size={18} />}>
433433
Start Camera
434434
</Button>
435435
)}
@@ -465,7 +465,7 @@ export function ScanPositionerModal({ opened, onClose, patient, onSuccess }: Sca
465465
</Text>
466466
<FileButton onChange={handleFileUpload} accept="image/*">
467467
{(props) => (
468-
<Button {...props} fullWidth loading={loading} color="teal" leftSection={<IconFolder size={18} />}>
468+
<Button {...props} fullWidth loading={loading} style={{ backgroundColor: '#007a7a', color: 'white' }} leftSection={<IconFolder size={18} />}>
469469
Choose Image
470470
</Button>
471471
)}
@@ -511,7 +511,7 @@ export function ScanPositionerModal({ opened, onClose, patient, onSuccess }: Sca
511511
onClick={checkAndActivate}
512512
loading={loading}
513513
disabled={!barcode && !(activeTab === 'manual' && manualBarcode)}
514-
color="teal"
514+
style={{ backgroundColor: '#007a7a', color: 'white' }}
515515
>
516516
Assign Positioner
517517
</Button>

0 commit comments

Comments
 (0)