File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ const FileNode = ({
93
93
const { t } = useTranslation ( ) ;
94
94
const fileNameInput = useRef ( null ) ;
95
95
const fileOptionsRef = useRef ( null ) ;
96
- const dispatch = useDispatch ( ) ;
97
96
98
97
const handleFileClick = ( event ) => {
99
98
event . stopPropagation ( ) ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import configureStore from 'redux-mock-store' ;
3
3
import thunk from 'redux-thunk' ;
4
+ import { useTranslation } from 'react-i18next' ;
4
5
import { setupServer } from 'msw/node' ;
5
6
import { rest } from 'msw' ;
6
7
import { act } from 'react-dom/test-utils' ;
@@ -26,8 +27,9 @@ afterAll(() => server.close());
26
27
describe ( '<Sketchlist />' , ( ) => {
27
28
const mockStore = configureStore ( [ thunk ] ) ;
28
29
const store = mockStore ( initialTestState ) ;
30
+ const { t } = useTranslation ( ) ;
29
31
30
- let subjectProps = { username : initialTestState . user . username } ;
32
+ let subjectProps = { username : initialTestState . user . username , t } ;
31
33
32
34
const subject = ( ) =>
33
35
reduxRender ( < SketchList { ...subjectProps } /> , { store } ) ;
Original file line number Diff line number Diff line change @@ -107,7 +107,12 @@ const DashboardView = () => {
107
107
case TabKey . sketches :
108
108
default :
109
109
return (
110
- < SketchList key = { username } mobile = { mobile } username = { username } />
110
+ < SketchList
111
+ key = { username }
112
+ mobile = { mobile }
113
+ username = { username }
114
+ t = { t }
115
+ />
111
116
) ;
112
117
}
113
118
} ;
You can’t perform that action at this time.
0 commit comments