mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 06:04:05 +00:00
refactor: extract timer data to hook
This commit is contained in:
committed by
Carlos Valente
parent
78184b23b7
commit
20ee391525
@@ -2,6 +2,7 @@ import { ComponentType, lazy, Suspense, useMemo } from 'react';
|
||||
import { Navigate, Route, useLocation } from 'react-router';
|
||||
import { OntimeView, OntimeViewPresettable } from 'ontime-types';
|
||||
|
||||
import ViewNavigationMenu from './common/components/navigation-menu/ViewNavigationMenu';
|
||||
import { useClientPath } from './common/hooks/useClientPath';
|
||||
import useUrlPresets from './common/hooks-query/useUrlPresets';
|
||||
import Log from './features/log/Log';
|
||||
@@ -41,6 +42,7 @@ export default function AppRouter() {
|
||||
path='timer'
|
||||
element={
|
||||
<ViewLoader>
|
||||
<ViewNavigationMenu isLockable />
|
||||
<Timer />
|
||||
</ViewLoader>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user