Skip to content
Snippets Groups Projects

Refactor

Merged Bjarke Madsen requested to merge refactor into develop
Files
94
@@ -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