File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/features/decoder/components Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- import React , { useEffect } from "react" ;
1
+ import React from "react" ;
2
2
import { EditorComponent } from "@/features/common/components/code-editor/editor.component" ;
3
3
4
4
interface JwtEditorComponentProps {
5
5
token : string ;
6
6
handleJwtChange : ( value : string ) => void ;
7
+ autoFocus : boolean
7
8
}
8
9
9
10
export const JwtEditorComponent : React . FC < JwtEditorComponentProps > = ( {
10
11
token,
12
+ autoFocus,
11
13
handleJwtChange,
12
14
} ) => {
13
15
return (
14
16
< EditorComponent
15
17
aria-label = "JWT editor input"
16
18
value = { token }
17
- autoFocus
18
- focusOnWindowFocus
19
+ autoFocus = { autoFocus }
20
+ focusOnWindowFocus = { autoFocus }
19
21
onValueChange = { ( code ) => handleJwtChange ( code ) }
20
22
highlight = { ( code ) => {
21
23
if ( ! code ) {
You can’t perform that action at this time.
0 commit comments