diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 17b944ff..4ce21e74 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -192,6 +192,11 @@ export const Footer: React.FunctionComponent = () => { /> {separator} + + + + {separator} + = (props) => { return null; }} /> - { - return ; - }} - /> { diff --git a/src/components/statistics/LanguageReport.tsx b/src/components/statistics/LanguageReport.tsx deleted file mode 100644 index 0c54618b..00000000 --- a/src/components/statistics/LanguageReport.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import React, { useEffect } from "react"; -import FileSaver from "file-saver"; -import { useGetCleanedAndOrderedLanguageList } from "../../connection/LibraryQueryHooks"; -import { ILanguage } from "../../model/Language"; - -export const LanguageReport: React.FunctionComponent<{}> = (props) => { - const langs = useGetCleanedAndOrderedLanguageList(); - - useEffect(() => { - if (langs && langs.length > 0) { - const langRows = langs.map( - (l: ILanguage) => - `${l.isoCode},"${l.name}","${l.englishName || ""}",${ - l.usageCount - }` - ); - const rows = ["TAG,AUTONYM,ENGLISH,BOOK COUNT", ...langRows]; - const csv = rows.join("\n"); - const blob = new Blob(["\ufeff" /* BOM */ + csv], { - type: "text/csv;charset=utf-8", - }); - FileSaver.saveAs(blob, "bloom-languages.csv"); - } - }, [langs]); - return
Building and downloading language report.
; -};