We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dff7409 commit ce857b1Copy full SHA for ce857b1
1 file changed
src/features/decoder/components/jwt-editor.component.tsx
@@ -1,21 +1,23 @@
1
-import React, { useEffect } from "react";
+import React from "react";
2
import { EditorComponent } from "@/features/common/components/code-editor/editor.component";
3
4
interface JwtEditorComponentProps {
5
token: string;
6
handleJwtChange: (value: string) => void;
7
+ autoFocus: boolean
8
}
9
10
export const JwtEditorComponent: React.FC<JwtEditorComponentProps> = ({
11
token,
12
+ autoFocus,
13
handleJwtChange,
14
}) => {
15
return (
16
<EditorComponent
17
aria-label="JWT editor input"
18
value={token}
- autoFocus
- focusOnWindowFocus
19
+ autoFocus={autoFocus}
20
+ focusOnWindowFocus={autoFocus}
21
onValueChange={(code) => handleJwtChange(code)}
22
highlight={(code) => {
23
if (!code) {
0 commit comments