@@ -6,6 +6,7 @@ import { HomeDictionaryModel } from "@/features/localization/models/home-diction
6
6
import { dataTestidDictionary } from "@/libs/testing/data-testid.dictionary" ;
7
7
import { CardToolbarComponent } from "@/features/common/components/card-toolbar/card-toolbar.component" ;
8
8
import { 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" ;
9
10
10
11
type EncodedJwtOutputComponentProps = {
11
12
languageCode : string ;
@@ -20,28 +21,32 @@ export const EncodedJwtOutputComponent: React.FC<
20
21
const encodingErrors = useEncoderStore ( ( state ) => state . encodingErrors ) ;
21
22
22
23
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
+ </ >
46
51
) ;
47
52
} ;
0 commit comments