@@ -15,14 +15,14 @@ export const TokenEncoderKeyFormatPickerComponent: React.FC<
15
15
const dictionary = getPickersUiDictionary ( languageCode ) ;
16
16
17
17
const handlePrivateKeyFormatChange = useEncoderStore (
18
- ( state ) => state . handleAsymmetricPrivateKeyFormatChange ,
18
+ ( state ) => state . handleAsymmetricPrivateKeyFormatChange
19
19
) ;
20
20
const controlledAsymmetricPrivateKey$ = useEncoderStore (
21
- ( state ) => state . controlledAsymmetricPrivateKey ,
21
+ ( state ) => state . controlledAsymmetricPrivateKey
22
22
) ;
23
23
24
24
const [ keyFormat , setKeyFormat ] = useState < AsymmetricKeyFormatValues > (
25
- AsymmetricKeyFormatValues . PEM ,
25
+ AsymmetricKeyFormatValues . PEM
26
26
) ;
27
27
28
28
useEffect ( ( ) => {
@@ -38,28 +38,32 @@ export const TokenEncoderKeyFormatPickerComponent: React.FC<
38
38
} ;
39
39
40
40
return (
41
- < div className = { styles . container } >
42
- < DebuggerPickerComponent
43
- languageCode = { languageCode }
44
- label = { dictionary . privateKeyFormatPicker . label }
45
- handleSelection = { onPrivateKeyFormatChange }
46
- selectedOptionCode = { {
47
- value : keyFormat ,
48
- label : keyFormat ,
49
- } }
50
- options = { [
51
- {
52
- value : AsymmetricKeyFormatValues . PEM ,
53
- label : AsymmetricKeyFormatValues . PEM ,
54
- } ,
55
- {
56
- value : AsymmetricKeyFormatValues . JWK ,
57
- label : AsymmetricKeyFormatValues . JWK ,
58
- } ,
59
- ] }
60
- placeholder = { null }
61
- minWidth = "6.125rem"
62
- />
41
+ < div className = { styles . encoder__switch } >
42
+ < div className = { styles . container } >
43
+ < div className = { styles . picker } >
44
+ < DebuggerPickerComponent
45
+ languageCode = { languageCode }
46
+ label = { dictionary . privateKeyFormatPicker . label }
47
+ handleSelection = { onPrivateKeyFormatChange }
48
+ selectedOptionCode = { {
49
+ value : keyFormat ,
50
+ label : keyFormat ,
51
+ } }
52
+ options = { [
53
+ {
54
+ value : AsymmetricKeyFormatValues . PEM ,
55
+ label : AsymmetricKeyFormatValues . PEM ,
56
+ } ,
57
+ {
58
+ value : AsymmetricKeyFormatValues . JWK ,
59
+ label : AsymmetricKeyFormatValues . JWK ,
60
+ } ,
61
+ ] }
62
+ placeholder = { null }
63
+ minWidth = "6.125rem"
64
+ />
65
+ </ div >
66
+ </ div >
63
67
</ div >
64
68
) ;
65
69
} ;
0 commit comments