diff --git a/src/App.tsx b/src/App.tsx index 74b93be..624a7a8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -19,6 +19,8 @@ import Settings from './components/settings'; import LanguageSelector from './components/language-selector'; import DisclaimerModal from './components/disclaimer-modal'; import { Button } from './components/ui/button'; +import { TooltipProvider } from './components/ui/tooltip'; +import { IconButtonWithTooltip } from './components/ui/icon-button-with-tooltip'; import { PROJECT_REPOSITORY_URL, APP_VERSION } from './constants/defaults'; // Custom Hooks @@ -100,19 +102,20 @@ const MedPlanAssistant = () => { } = useSimulation(appState); return ( -
+ {doseCountDiff > 0 ? '+' : ''}{doseCountDiff} {Math.abs(doseCountDiff) === 1 ? t('dose') : t('doses')} {t('comparedToRegularPlan')} +
+- {totalMgDiff > 0 ? '+' : ''}{totalMgDiff.toFixed(1)} mg {t('comparedToRegularPlan')} -
-+ {totalMgDiff > 0 ? '+' : ''}{totalMgDiff.toFixed(1)} mg {t('comparedToRegularPlan')} +
+- {isDaySorted(day) ? t('sortByTimeSorted') : t('sortByTimeNeeded')} -
-+ {isDaySorted(day) ? t('sortByTimeSorted') : t('sortByTimeNeeded')} +
+{tooltip}
+