diff --git a/src/App.tsx b/src/App.tsx index f1b0165..545e47e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,10 +4,12 @@ import Header from "./components/Header"; import Main from "./components/Main/Main"; import Settings from "./components/Settings"; import { RootState } from "./redux/store"; +import { POMODORO, SHORT_BREAK } from "./constant"; function App() { - const { settingsopen ,modes,mode} = useSelector((state: RootState) => state.timer); + const { settingsopen ,mode} = useSelector((state: RootState) => state.timer); + const background= mode == POMODORO ? 'bg-pomodoro' : mode== SHORT_BREAK ? 'bg-shortbreak' : 'bg-longbreak' return ( -