Skip to content

Commit

Permalink
fix: remove lazy load from Routes.txs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanzyTHEbar committed Mar 10, 2023
1 parent c1afc37 commit ca6e41d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion GUI/ETVR/src/components/List/ListHeader/ListHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const ListHeader = () => {
<p class="text-left w-[150px] m-auto ">Status</p>
</div>
<div>
<p class="max-sm:hidden max-md:text-right text-left w-[150px] m-auto ">Camera Type</p>
<p class="max-sm:hidden max-md:text-right text-left w-[150px] m-auto ">
Camera Type
</p>
</div>
</div>
)
Expand Down
5 changes: 2 additions & 3 deletions GUI/ETVR/src/routes/Routes.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { useRoutes } from '@solidjs/router'
import { lazy, onMount } from 'solid-js'
import { onMount } from 'solid-js'
import { routes } from '.'
import Header from '@components/Header'
import { connectedUserName } from '@src/store/ui/selectors'
import { setConnectedUser } from '@src/store/ui/ui'

const Header = lazy(() => import('@components/Header'))

const AppRoutes = () => {
const Path = useRoutes(routes)

Expand Down
5 changes: 4 additions & 1 deletion GUI/ETVR/src/utils/context/mdns/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export const MdnsProvider = (props: {
| null
| undefined
}) => {
const { data, mutate, refetch, resData, setResData } = useMDNSScanner('_openiristracker._tcp', 30)
const { data, mutate, refetch, resData, setResData } = useMDNSScanner(
'_openiristracker._tcp',
30,
)
return (
<MdnsContext.Provider value={{ data, mutate, refetch, resData, setResData }}>
{props.children}
Expand Down

0 comments on commit ca6e41d

Please sign in to comment.