@@ -20,7 +20,7 @@ export const HtmlExporter = ({ content, hidden }: Props) => {
20
20
21
21
const pdfApi = `${ basePath } /pdf` ;
22
22
23
- const { versionKey, versions } = content ;
23
+ const { versionKey : currentVersionKey , versions } = content ;
24
24
25
25
return (
26
26
< div className = { classNames ( style . exporter , hidden && style . hidden ) } >
@@ -29,28 +29,19 @@ export const HtmlExporter = ({ content, hidden }: Props) => {
29
29
{ 'Eksporter til PDF' }
30
30
</ Heading >
31
31
< Button
32
- variant = { 'primary ' }
32
+ variant = { 'tertiary ' }
33
33
size = { 'small' }
34
34
as = { 'a' }
35
- href = { `${ pdfApi } /single/${ versionKey } ` }
35
+ href = { `${ pdfApi } /single/${ currentVersionKey } ` }
36
36
icon = { < ArrowDownRightIcon className = { style . downloadCurrentIcon } /> }
37
37
iconPosition = { 'right' }
38
- className = { style . downloadCurrent }
38
+ className = { style . downloadCurrentButton }
39
39
>
40
40
{ 'Last ned denne versjonen' }
41
41
</ Button >
42
42
</ div >
43
- < Button
44
- variant = { 'primary' }
45
- size = { 'small' }
46
- as = { 'a' }
47
- href = { `${ pdfApi } /multi/${ versionKeysSelected . join ( ',' ) } ` }
48
- disabled = { versionKeysSelected . length === 0 }
49
- >
50
- { 'Last ned valgte versjoner' }
51
- </ Button >
52
43
< CheckboxGroup
53
- legend = { 'Last ned flere versjoner' }
44
+ legend = { 'Velg flere versjoner (lastes ned i en samlet zip-fil) ' }
54
45
size = { 'small' }
55
46
className = { style . checkboxGroup }
56
47
onChange = { setVersionKeysSelected }
@@ -64,6 +55,16 @@ export const HtmlExporter = ({ content, hidden }: Props) => {
64
55
) ;
65
56
} ) }
66
57
</ CheckboxGroup >
58
+ < Button
59
+ variant = { 'primary' }
60
+ size = { 'medium' }
61
+ as = { 'a' }
62
+ href = { `${ pdfApi } /multi/${ versionKeysSelected . join ( ',' ) } ` }
63
+ disabled = { versionKeysSelected . length === 0 }
64
+ className = { style . downloadAllButton }
65
+ >
66
+ { 'Last ned valgte versjoner' }
67
+ </ Button >
67
68
</ div >
68
69
) ;
69
70
} ;
0 commit comments