updated codebase to allow for external access
This commit is contained in:
@@ -4,7 +4,7 @@ import PatientDetailModal from './PatientDetailModal'; // ADD THIS IMPORT
|
||||
|
||||
const { Activity, AlertCircle, Clock, Users, Bell, Heart, Thermometer, Wind, CheckCircle, UserX } = LucideIcons;
|
||||
|
||||
const API_BASE = 'http://localhost:8000';
|
||||
const API_BASE = 'http://${window.location.hostname}:8000';
|
||||
|
||||
function App() {
|
||||
const [patients, setPatients] = useState([]);
|
||||
|
||||
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
|
||||
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer, ReferenceLine } from 'recharts';
|
||||
import { X, TrendingUp, TrendingDown, Activity, Heart, Wind, Thermometer } from 'lucide-react';
|
||||
|
||||
const API_BASE = 'http://localhost:8000';
|
||||
const API_BASE = 'http://${window.location.hostname}:8000';
|
||||
|
||||
const PatientDetailModal = ({ patient, onClose }) => {
|
||||
const [vitalsHistory, setVitalsHistory] = useState([]);
|
||||
|
||||
Reference in New Issue
Block a user