@@ -6,6 +6,7 @@ import { HomeDictionaryModel } from "@/features/localization/models/home-diction
66import { dataTestidDictionary } from "@/libs/testing/data-testid.dictionary" ;
77import { CardToolbarComponent } from "@/features/common/components/card-toolbar/card-toolbar.component" ;
88import { CardToolbarCopyButtonComponent } from "@/features/common/components/card-toolbar-buttons/card-toolbar-copy-button/card-toolbar-copy-button.component" ;
9+ import styles from "./encoded-jwt-output.module.scss" ;
910
1011type EncodedJwtOutputComponentProps = {
1112 languageCode : string ;
@@ -20,28 +21,32 @@ export const EncodedJwtOutputComponent: React.FC<
2021 const encodingErrors = useEncoderStore ( ( state ) => state . encodingErrors ) ;
2122
2223 return (
23- < CardComponent
24- id = { dataTestidDictionary . encoder . jwt . id }
25- languageCode = { languageCode }
26- title = { dictionary . title }
27- compactTitle = { dictionary . title }
28- options = { { noPadding : true , fullHeight : true , isOutput : true } }
29- messages = { {
30- warnings : encodingWarnings ,
31- errors : encodingErrors ,
32- } }
33- slots = { {
34- toolbar : (
35- < CardToolbarComponent ariaLabel = { "JWT editor toolbar" } >
36- < CardToolbarCopyButtonComponent
37- languageCode = { languageCode }
38- value = { encodedToken$ || "" }
39- />
40- </ CardToolbarComponent >
41- ) ,
42- } }
43- >
44- < EncodedTokenComponent encodedToken = { encodedToken$ || "" } />
45- </ CardComponent >
24+ < >
25+ < h4 className = { styles . headline } > { dictionary . heading } </ h4 >
26+ < CardComponent
27+ id = { dataTestidDictionary . encoder . jwt . id }
28+ languageCode = { languageCode }
29+ title = { dictionary . title }
30+ hasHeaderIcon
31+ compactTitle = { dictionary . title }
32+ options = { { noPadding : false , fullHeight : true , isOutput : true } }
33+ messages = { {
34+ warnings : encodingWarnings ,
35+ errors : encodingErrors ,
36+ } }
37+ slots = { {
38+ toolbar : (
39+ < CardToolbarComponent ariaLabel = { "JWT editor toolbar" } >
40+ < CardToolbarCopyButtonComponent
41+ languageCode = { languageCode }
42+ value = { encodedToken$ || "" }
43+ />
44+ </ CardToolbarComponent >
45+ ) ,
46+ } }
47+ >
48+ < EncodedTokenComponent encodedToken = { encodedToken$ || "" } />
49+ </ CardComponent >
50+ </ >
4651 ) ;
4752} ;
0 commit comments