Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compendium-v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
compendium-v2
Merge requests
!134
Refactor
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Refactor
refactor
into
develop
Overview
0
Commits
48
Pipelines
0
Changes
94
Merged
Bjarke Madsen
requested to merge
refactor
into
develop
7 months ago
Overview
0
Commits
48
Pipelines
0
Changes
94
Expand
0
0
Merge request reports
Compare
develop
version 10
5baca287
6 months ago
version 9
4a87d05d
6 months ago
version 8
1022ff64
6 months ago
version 7
87c5a445
6 months ago
version 6
25c4ec29
6 months ago
version 5
710640ec
7 months ago
version 4
5cb575fd
7 months ago
version 3
61288cd6
7 months ago
version 2
9237aea2
7 months ago
version 1
88f28f02
7 months ago
develop (base)
and
latest version
latest version
e3fcab93
48 commits,
6 months ago
version 10
5baca287
47 commits,
6 months ago
version 9
4a87d05d
46 commits,
6 months ago
version 8
1022ff64
45 commits,
6 months ago
version 7
87c5a445
44 commits,
6 months ago
version 6
25c4ec29
34 commits,
6 months ago
version 5
710640ec
33 commits,
7 months ago
version 4
5cb575fd
24 commits,
7 months ago
version 3
61288cd6
20 commits,
7 months ago
version 2
9237aea2
19 commits,
7 months ago
version 1
88f28f02
13 commits,
7 months ago
94 files
+
2103
−
2974
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
94
Search (e.g. *.vue) (Ctrl+P)
compendium-frontend/src/components/DownloadContainer.tsx
→
compendium-frontend/src/components/
download/
DownloadContainer.tsx
+
7
−
2
Options
@@ -2,9 +2,14 @@ import React from "react";
import
DownloadDataButton
from
"
./DownloadDataButton
"
;
import
DownloadImageChartButton
from
"
./DownloadImageChartButton
"
;
import
{
ExportType
}
from
"
../helpers/constants
"
;
import
{
ExportType
}
from
"
../../helpers/constants
"
;
import
{
NrenAndYearDatapoint
}
from
"
../../Schema
"
;
const
DownloadContainer
=
({
data
,
filename
})
=>
{
interface
DownloadProps
{
data
:
NrenAndYearDatapoint
[];
filename
:
string
;
}
const
DownloadContainer
=
({
data
,
filename
}:
DownloadProps
)
=>
{
return
<
div
className
=
"downloadcontainer"
>
<
DownloadDataButton
data
=
{
data
}
filename
=
{
`
${
filename
}
.csv`
}
exportType
=
{
ExportType
.
CSV
}
/>
<
DownloadDataButton
data
=
{
data
}
filename
=
{
`
${
filename
}
.xlsx`
}
exportType
=
{
ExportType
.
EXCEL
}
/>
Loading