File tree Expand file tree Collapse file tree
SparkyFitnessFrontend/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export const HIGH_DEBT_THRESHOLD_HOURS = 1.5 ;
2+ export const GOOD_SLEEP_SCORE_THRESHOLD = 70 ;
3+
4+ export const DEBT_ZONE_COLOR = '#ff0000' ;
5+ export const SURPLUS_ZONE_COLOR = '#00ff00' ;
6+ export const DEFAULT_HYPNOGRAMS_SHOWN = 3 ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ import {
1010 type SleepEntry ,
1111} from '@/types' ;
1212import { formatSecondsToHHMM } from '@/utils/timeFormatters' ;
13+ import {
14+ DEBT_ZONE_COLOR ,
15+ SURPLUS_ZONE_COLOR ,
16+ DEFAULT_HYPNOGRAMS_SHOWN ,
17+ } from '@/constants/sleep' ;
1318import {
1419 Activity ,
1520 ChevronDown ,
@@ -76,10 +81,6 @@ interface SleepAnalyticsChartsProps {
7681 latestSleepEntry ?: SleepEntry | null ;
7782}
7883
79- const DEBT_ZONE_COLOR = '#ff0000' ;
80- const SURPLUS_ZONE_COLOR = '#00ff00' ;
81- const DEFAULT_HYPNOGRAMS_SHOWN = 3 ;
82-
8384const SleepAnalyticsCharts = ( {
8485 sleepAnalyticsData,
8586 sleepHypnogramData,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { formatSecondsToHHMM } from '@/utils/timeFormatters';
1919import {
2020 HIGH_DEBT_THRESHOLD_HOURS ,
2121 GOOD_SLEEP_SCORE_THRESHOLD ,
22- } from '@/constants/sleepScience ' ;
22+ } from '@/constants/sleep ' ;
2323
2424interface SleepAnalyticsTableProps {
2525 combinedSleepData : CombinedSleepData [ ] ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { formatSecondsToHHMM } from '@/utils/timeFormatters';
1616import {
1717 HIGH_DEBT_THRESHOLD_HOURS ,
1818 GOOD_SLEEP_SCORE_THRESHOLD ,
19- } from '@/constants/sleepScience ' ;
19+ } from '@/constants/sleep ' ;
2020import SleepAnalyticsCharts from './SleepAnalyticsCharts' ;
2121import SleepAnalyticsTable from './SleepAnalyticsTable' ;
2222
You can’t perform that action at this time.
0 commit comments