diff --git a/.gitignore b/.gitignore index f74e8b6..08124e2 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,7 @@ yarn-error.log* /.env /public/static/ /hint-report/ + +~* +\#* +_* diff --git a/src/App.tsx b/src/App.tsx index b71b7b4..5d0f0ea 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -12,9 +12,7 @@ import React from 'react'; // Components -import DoseSchedule from './components/dose-schedule'; -import DeviationList from './components/deviation-list'; -import SuggestionPanel from './components/suggestion-panel'; +import DaySchedule from './components/day-schedule'; import SimulationChart from './components/simulation-chart'; import Settings from './components/settings'; import LanguageSelector from './components/language-selector'; @@ -31,15 +29,19 @@ const MedPlanAssistant = () => { const { appState, - updateState, updateNestedState, updateUiSetting, - handleReset + handleReset, + addDay, + removeDay, + addDoseToDay, + removeDoseFromDay, + updateDoseInDay } = useAppState(); const { pkParams, - doses, + days, therapeuticRange, doseIncrement, uiSettings @@ -50,21 +52,15 @@ const MedPlanAssistant = () => { chartView, yAxisMin, yAxisMax, + showTemplateDay, simulationDays, displayedDays } = uiSettings; const { - deviations, - suggestion, - idealProfile, - deviatedProfile, - correctedProfile, - addDeviation, - removeDeviation, - handleDeviationChange, - applySuggestion - } = useSimulation(appState, t); + combinedProfile, + templateProfile + } = useSimulation(appState); return (