@@ -20,6 +20,8 @@ import { AsymmetricKeyFormatValues } from "@/features/common/values/asymmetric-k
2020import { WidgetComponent } from "@/features/common/components/widget/widget/widget.component" ;
2121import { dataTestidDictionary } from "@/libs/testing/data-testid.dictionary" ;
2222import { DebuggerWidgetValues } from "@/features/common/values/debugger-widget.values" ;
23+ import { WidgetAlgPickerComponent } from "@/features/debugger/components/debugger-alg-picker/debugger-alg-picker.component" ;
24+ import styles from "./token-decoder.module.scss" ;
2325
2426interface TokenDecoderComponentProps {
2527 languageCode : string ;
@@ -49,7 +51,7 @@ export const TokenDecoderComponent: React.FC<TokenDecoderComponentProps> = ({
4951 const loadDecoderInputs = useDecoderStore ( ( state ) => state . loadDecoderInputs ) ;
5052 const handleJwtChange$ = useDecoderStore ( ( state ) => state . handleJwtChange ) ;
5153 const showUseHashWarning$ = useDecoderStore (
52- ( state ) => state . showUseHashWarning ,
54+ ( state ) => state . showUseHashWarning
5355 ) ;
5456
5557 useEffect ( ( ) => {
@@ -184,41 +186,51 @@ export const TokenDecoderComponent: React.FC<TokenDecoderComponentProps> = ({
184186 } , [ decoderInputs$ , loadDecoderInputs , headlineConfig . isVisible ] ) ;
185187
186188 return (
187- < WidgetComponent
188- id = { dataTestidDictionary . decoder . id }
189- widget = { DebuggerWidgetValues . DECODER }
190- languageCode = { languageCode }
191- headlineConfig = { headlineConfig }
192- title = { dictionary . title }
193- description = { dictionary . description }
194- exampleGenerator = { dictionary . exampleGenerator }
195- contentInput = {
196- < JwtInputComponent
197- dictionary = { dictionary . jwtEditor }
189+ < >
190+ < div className = { styles . input__description } >
191+ < span > { dictionary . description } </ span >
192+ < WidgetAlgPickerComponent
193+ label = { dictionary . exampleGenerator . label }
198194 languageCode = { languageCode }
195+ widget = { DebuggerWidgetValues . DECODER }
199196 />
200- }
201- contentOutput = {
202- < >
203- < DecodedHeaderOutputComponent
204- languageCode = { languageCode }
205- dictionary = { dictionary . decodedHeader }
206- decodedHeaderInitialTabId = { decodedHeaderInitialTabId }
207- descriptionVisibility = { decodedHeaderDescriptionVisibility }
208- />
209- < DecodedPayloadOutputComponent
210- languageCode = { languageCode }
211- dictionary = { dictionary . decodedPayload }
212- decodedPayloadInitialTabId = { decodedPayloadInitialTabId }
213- descriptionVisibility = { decodedPayloadDescriptionVisibility }
214- />
215- < SecretKeyInputComponent
197+ </ div >
198+ < WidgetComponent
199+ id = { dataTestidDictionary . decoder . id }
200+ widget = { DebuggerWidgetValues . DECODER }
201+ languageCode = { languageCode }
202+ headlineConfig = { headlineConfig }
203+ title = { dictionary . title }
204+ description = { dictionary . description }
205+ exampleGenerator = { dictionary . exampleGenerator }
206+ contentInput = {
207+ < JwtInputComponent
208+ dictionary = { dictionary . jwtEditor }
216209 languageCode = { languageCode }
217- dictionary = { dictionary . signatureVerification }
218210 />
219- </ >
220- }
221- warnings = { null }
222- />
211+ }
212+ contentOutput = {
213+ < >
214+ < DecodedHeaderOutputComponent
215+ languageCode = { languageCode }
216+ dictionary = { dictionary . decodedHeader }
217+ decodedHeaderInitialTabId = { decodedHeaderInitialTabId }
218+ descriptionVisibility = { decodedHeaderDescriptionVisibility }
219+ />
220+ < DecodedPayloadOutputComponent
221+ languageCode = { languageCode }
222+ dictionary = { dictionary . decodedPayload }
223+ decodedPayloadInitialTabId = { decodedPayloadInitialTabId }
224+ descriptionVisibility = { decodedPayloadDescriptionVisibility }
225+ />
226+ < SecretKeyInputComponent
227+ languageCode = { languageCode }
228+ dictionary = { dictionary . signatureVerification }
229+ />
230+ </ >
231+ }
232+ warnings = { null }
233+ />
234+ </ >
223235 ) ;
224236} ;
0 commit comments