diff --git a/src/components/manage/Blocks/SiteBlocks/Header/ViewDeprecated.jsx b/src/components/manage/Blocks/SiteBlocks/Header/ViewDeprecated.jsx deleted file mode 100644 index ff0d032a..00000000 --- a/src/components/manage/Blocks/SiteBlocks/Header/ViewDeprecated.jsx +++ /dev/null @@ -1,144 +0,0 @@ -import React from 'react'; -import { compose } from 'redux'; -import { connect } from 'react-redux'; -import { Dropdown } from 'semantic-ui-react'; -import QueryBuilder from '../QueryBuilder'; -import { setQueryParam, deleteQueryParam } from 'volto-datablocks/actions'; -import './style.css'; - -const View = (props) => { - const { - siteInspireId = null, - siteReportingYear = null, - } = props.discodata_query.search; - const { - site_header = {}, - reporting_years = [], - } = props.discodata_resources.data; - const site = site_header[siteInspireId] || null; - const options = reporting_years - .filter((item) => item.reportingYear) - .map((item, index) => ({ - key: item.reportingYear || index, - value: item.reportingYear || index, - text: item.reportingYear || index, - })); - - return props.mode === 'edit' ? ( -
Site Header
- ) : ( -Country
-{site.countryCode}
-Regulation
- {site.count_factype_EPRTR ? ( -- {site.count_factype_EPRTR} EPRTR{' '} - {site.count_factype_EPRTR > 1 ? 'Facilities' : 'Facility'} -
- ) : ( - '' - )} - {site.count_factype_NONEPRTR ? ( -- {site.count_factype_NONEPRTR} NON-EPRTR{' '} - {site.count_factype_NONEPRTR > 1 ? 'Facilities' : 'Facility'} -
- ) : ( - '' - )} - {site.count_instype_IED ? ( -- {site.count_instype_IED} IED Installation - {site.count_instype_IED > 1 ? 's' : ''} -
- ) : ( - '' - )} - {site.count_instype_NONIED ? ( -- {site.count_instype_NONIED} NON-IED Installation - {site.count_instype_NONIED > 1 ? 's' : ''} -
- ) : ( - '' - )} - {site.count_plantType_LCP ? ( -- {site.count_plantType_LCP} Large combustion plant - {site.count_plantType_LCP > 1 ? 's' : ''} -
- ) : ( - '' - )} - {site.count_plantType_WI ? ( -- {site.count_plantType_WI} Waste incinerator - {site.count_plantType_WI > 1 ? 's' : ''} -
- ) : ( - '' - )} - {site.count_plantType_coWI ? ( -- {site.count_plantType_coWI} Co-waste incinerator - {site.count_plantType_WI > 1 ? 's' : ''} -
- ) : ( - '' - )} -Inspire id
-{site.siteInspireId}
-Reporting year
-