update page
This commit is contained in:
@@ -49,7 +49,7 @@ const typeColors: Record<string, string> = {
|
||||
};
|
||||
|
||||
export default function Dashboard() {
|
||||
const { data, loading, lastUpdated, refresh, typeCounts, groupedByType, parseLog, setData } =
|
||||
const { data, loading, lastUpdated, refresh, reloadFromCSV, typeCounts, groupedByType, parseLog, setData } =
|
||||
useTraceabilityData();
|
||||
const [showDebug, setShowDebug] = useState(false);
|
||||
const [showUpload, setShowUpload] = useState(false);
|
||||
@@ -156,7 +156,7 @@ export default function Dashboard() {
|
||||
<RefreshCw className="h-4 w-4 mr-2" />
|
||||
Update Data
|
||||
</Button>
|
||||
<Button variant="outline" onClick={refresh} disabled={loading}>
|
||||
<Button variant="outline" onClick={reloadFromCSV} disabled={loading}>
|
||||
Reload from CSV
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user