Commit 567e171 1 parent 39b68f4 commit 567e171 Copy full SHA for 567e171
File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 1
- import { useRouter } from 'next/router' ;
2
- import type { ReactNode } from 'react' ;
3
- import { useEffect } from 'react' ;
1
+ import { type ReactNode , useEffect } from 'react' ;
4
2
import { useLogger } from '../hooks/logger.jsx' ;
5
- import { runInBackground } from '../lib/async/run-in-background.js' ;
6
3
7
4
const HomePage : React . FC = ( ) : ReactNode => {
8
5
const logger = useLogger ( 'page:home' ) ;
9
6
10
- const router = useRouter ( ) ;
11
-
12
7
// TODO make the home page useful
13
8
// - display list of favorite characters?
14
9
// - display list of recent characters?
15
-
16
10
useEffect ( ( ) => {
17
- runInBackground ( async ( ) => {
18
- await router . push ( '/grid' ) ;
19
- } ) ;
20
- } , [ router ] ) ;
11
+ logger . info ( 'page loaded' ) ;
12
+ } , [ logger ] ) ;
21
13
22
14
return < > </ > ;
23
15
} ;
You can’t perform that action at this time.
0 commit comments