@@ -15,14 +15,14 @@ export const TokenEncoderKeyFormatPickerComponent: React.FC<
1515 const dictionary = getPickersUiDictionary ( languageCode ) ;
1616
1717 const handlePrivateKeyFormatChange = useEncoderStore (
18- ( state ) => state . handleAsymmetricPrivateKeyFormatChange ,
18+ ( state ) => state . handleAsymmetricPrivateKeyFormatChange
1919 ) ;
2020 const controlledAsymmetricPrivateKey$ = useEncoderStore (
21- ( state ) => state . controlledAsymmetricPrivateKey ,
21+ ( state ) => state . controlledAsymmetricPrivateKey
2222 ) ;
2323
2424 const [ keyFormat , setKeyFormat ] = useState < AsymmetricKeyFormatValues > (
25- AsymmetricKeyFormatValues . PEM ,
25+ AsymmetricKeyFormatValues . PEM
2626 ) ;
2727
2828 useEffect ( ( ) => {
@@ -38,28 +38,32 @@ export const TokenEncoderKeyFormatPickerComponent: React.FC<
3838 } ;
3939
4040 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 >
6367 </ div >
6468 ) ;
6569} ;
0 commit comments