Update src/store/useOncologyStore.ts
Browse files
src/store/useOncologyStore.ts
CHANGED
|
@@ -26,10 +26,20 @@ interface OncologyState {
|
|
| 26 |
addAlert: (alert: ToxicityAlert) => void;
|
| 27 |
}
|
| 28 |
|
|
|
|
| 29 |
export const useOncologyStore = create<OncologyState>((set) => ({
|
| 30 |
mutation: 'BRAF V600E',
|
| 31 |
cancerType: 'Melanoma',
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
alerts: [],
|
| 34 |
setProfile: (mutation, cancerType) => set({ mutation, cancerType }),
|
| 35 |
setMatches: (matches) => set({ matches }),
|
|
|
|
| 26 |
addAlert: (alert: ToxicityAlert) => void;
|
| 27 |
}
|
| 28 |
|
| 29 |
+
// src/store/useOncologyStore.ts (Updated with sample data)
|
| 30 |
export const useOncologyStore = create<OncologyState>((set) => ({
|
| 31 |
mutation: 'BRAF V600E',
|
| 32 |
cancerType: 'Melanoma',
|
| 33 |
+
// Add a sample trial here so the dashboard isn't empty
|
| 34 |
+
matches: [
|
| 35 |
+
{
|
| 36 |
+
nct_id: "NCT04567890",
|
| 37 |
+
title: "Targeted Therapy for BRAF-Mutant Advanced Melanoma",
|
| 38 |
+
match_quality: 0.95,
|
| 39 |
+
phase: "Phase III",
|
| 40 |
+
location: "Mayo Clinic, MN"
|
| 41 |
+
}
|
| 42 |
+
],
|
| 43 |
alerts: [],
|
| 44 |
setProfile: (mutation, cancerType) => set({ mutation, cancerType }),
|
| 45 |
setMatches: (matches) => set({ matches }),
|