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" ;
22import { EditorComponent } from "@/features/common/components/code-editor/editor.component" ;
33
44interface JwtEditorComponentProps {
55 token : string ;
66 handleJwtChange : ( value : string ) => void ;
7+ autoFocus : boolean
78}
89
910export const JwtEditorComponent : React . FC < JwtEditorComponentProps > = ( {
1011 token,
12+ autoFocus,
1113 handleJwtChange,
1214} ) => {
1315 return (
1416 < EditorComponent
1517 aria-label = "JWT editor input"
1618 value = { token }
17- autoFocus
18- focusOnWindowFocus
19+ autoFocus = { autoFocus }
20+ focusOnWindowFocus = { autoFocus }
1921 onValueChange = { ( code ) => handleJwtChange ( code ) }
2022 highlight = { ( code ) => {
2123 if ( ! code ) {
You can’t perform that action at this time.
0 commit comments