diff --git a/public/robots.txt b/public/robots.txt index 54fb9891..7d329b1d 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,2 +1 @@ User-agent: * - diff --git a/src/components/manage/Blocks/SiteBlocks/CompetentAuthority.jsx b/src/components/manage/Blocks/SiteBlocks/CompetentAuthority.jsx index 36510efa..b6bea9dd 100644 --- a/src/components/manage/Blocks/SiteBlocks/CompetentAuthority.jsx +++ b/src/components/manage/Blocks/SiteBlocks/CompetentAuthority.jsx @@ -16,7 +16,12 @@ const CompetentAuthority = (props) => { )} >

Competent Authority

- + { }; const Edit = (props) => { - const [state, setState] = useState({ + const [state] = useState({ schema: getSchema({ ...props, providerUrl: settings.providerUrl }), id: _uniqueId('block_'), }); diff --git a/src/components/manage/Blocks/SiteBlocks/Header/View.jsx b/src/components/manage/Blocks/SiteBlocks/Header/View.jsx index f400ee5a..b817ca38 100644 --- a/src/components/manage/Blocks/SiteBlocks/Header/View.jsx +++ b/src/components/manage/Blocks/SiteBlocks/Header/View.jsx @@ -1,10 +1,12 @@ -import React, { useState, useEffect, useRef } from 'react'; +import React from 'react'; import { compose } from 'redux'; import { connect } from 'react-redux'; -import { Tab, Dropdown, Table } from 'semantic-ui-react'; +import { Dropdown } from 'semantic-ui-react'; import QueryBuilder from '../QueryBuilder'; -import { setQueryParam, deleteQueryParam } from '@eeacms/volto-datablocks/actions'; -import cx from 'classnames'; +import { + setQueryParam, + deleteQueryParam, +} from '@eeacms/volto-datablocks/actions'; import './style.css'; const View = (props) => { diff --git a/src/components/manage/Blocks/SiteBlocks/LcpDetails/View.jsx b/src/components/manage/Blocks/SiteBlocks/LcpDetails/View.jsx index 326ac33a..682c2686 100644 --- a/src/components/manage/Blocks/SiteBlocks/LcpDetails/View.jsx +++ b/src/components/manage/Blocks/SiteBlocks/LcpDetails/View.jsx @@ -3,19 +3,15 @@ import { compose } from 'redux'; import { connect } from 'react-redux'; import ReactTooltip from 'react-tooltip'; import { Link } from 'react-router-dom'; -import { setQueryParam, deleteQueryParam } from '@eeacms/volto-datablocks/actions'; -import Icon from '@plone/volto/components/theme/Icon/Icon'; -import infoSVG from '@plone/volto/icons/info.svg'; -import CompetentAuthority from '../CompetentAuthority'; -import { getDate } from '../helpers'; -import cx from 'classnames'; +import { + setQueryParam, + deleteQueryParam, +} from '@eeacms/volto-datablocks/actions'; import './style.css'; const View = (props) => { const { siteInspireId = null, - facilityInspireId = null, - installationInspireId = null, lcpInspireId = null, siteReportingYear = null, } = props.discodata_query.search; diff --git a/src/components/manage/Blocks/SiteBlocks/PermitingAuthority.jsx b/src/components/manage/Blocks/SiteBlocks/PermitingAuthority.jsx index 56e9e955..ee35305a 100644 --- a/src/components/manage/Blocks/SiteBlocks/PermitingAuthority.jsx +++ b/src/components/manage/Blocks/SiteBlocks/PermitingAuthority.jsx @@ -11,7 +11,12 @@ const PermitingAuthority = (props) => {

Permiting Authority

- + { {facility[0]?.facilityIndustrialActivity}{' '} {facility[0]?.facilityMainActivity} - @@ -69,7 +72,7 @@ const View = (props) => { size="20" color="#D63D27" /> - + */}

) : ( diff --git a/src/components/manage/Blocks/SiteBlocks/PollutantsSiteDetails/View.jsx b/src/components/manage/Blocks/SiteBlocks/PollutantsSiteDetails/View.jsx index f113cbdb..bceef8a7 100644 --- a/src/components/manage/Blocks/SiteBlocks/PollutantsSiteDetails/View.jsx +++ b/src/components/manage/Blocks/SiteBlocks/PollutantsSiteDetails/View.jsx @@ -3,7 +3,10 @@ import { useHistory } from 'react-router-dom'; import { compose } from 'redux'; import { connect } from 'react-redux'; import ReactTooltip from 'react-tooltip'; -import { setQueryParam, deleteQueryParam } from '@eeacms/volto-datablocks/actions'; +import { + setQueryParam, + deleteQueryParam, +} from '@eeacms/volto-datablocks/actions'; import _uniqueId from 'lodash/uniqueId'; import Icon from '@plone/volto/components/theme/Icon/Icon'; import CompetentAuthority from '../CompetentAuthority'; @@ -62,9 +65,10 @@ const View = (props) => { site.eprtrReportingYear ? 'xs-6 sm-6 md-6 lg-6' : 'xs-12 sm-12 md-12 lg-12', + 'mb-0', )} > - @@ -74,14 +78,18 @@ const View = (props) => { size="20" color="#fff" /> - + */}

Last report was submitted on:

-

{getDate(site.authLastUpdated)}

+

+ {getDate(site.authLastUpdated)} +

{site.eprtrReportingYear ? (

EPRTR reporting year

-

{site.eprtrReportingYear}

+

+ {site.eprtrReportingYear} +

) : ( '' diff --git a/src/components/manage/Blocks/SiteBlocks/RegulatoryInstallationDetails/View.jsx b/src/components/manage/Blocks/SiteBlocks/RegulatoryInstallationDetails/View.jsx index 4ac1aca5..894948e3 100644 --- a/src/components/manage/Blocks/SiteBlocks/RegulatoryInstallationDetails/View.jsx +++ b/src/components/manage/Blocks/SiteBlocks/RegulatoryInstallationDetails/View.jsx @@ -1,21 +1,19 @@ -import React, { useState, useEffect } from 'react'; -import { useHistory } from 'react-router-dom'; +import React, { useState } from 'react'; import { compose } from 'redux'; import { connect } from 'react-redux'; import ReactTooltip from 'react-tooltip'; -import { setQueryParam, deleteQueryParam } from '@eeacms/volto-datablocks/actions'; -import _uniqueId from 'lodash/uniqueId'; +import { + setQueryParam, + deleteQueryParam, +} from '@eeacms/volto-datablocks/actions'; import Icon from '@plone/volto/components/theme/Icon/Icon'; -import RenderTable from '../RenderTable'; import PermitingAuthority from '../PermitingAuthority'; -import moment from 'moment'; import cx from 'classnames'; -import { getDate, getLonLat } from '../helpers'; +import { getDate } from '../helpers'; import infoSVG from '@plone/volto/icons/info.svg'; import './style.css'; const View = (props) => { - const history = useHistory(); const [aels, setAels] = useState(false); const { siteInspireId = null, @@ -79,7 +77,12 @@ const View = (props) => { {/* BAT CONCLUSION */}

BAT conclusions

- + { }; const Edit = (props) => { - const [state, setState] = useState({ + const [state] = useState({ schema: getSchema({ ...props, providerUrl: settings.providerUrl }), id: _uniqueId('block_'), }); diff --git a/src/components/manage/Blocks/SiteBlocks/RegulatorySiteDetails/View.jsx b/src/components/manage/Blocks/SiteBlocks/RegulatorySiteDetails/View.jsx index a7eaaae9..66de4528 100644 --- a/src/components/manage/Blocks/SiteBlocks/RegulatorySiteDetails/View.jsx +++ b/src/components/manage/Blocks/SiteBlocks/RegulatorySiteDetails/View.jsx @@ -1,21 +1,19 @@ -import React, { useState, useEffect } from 'react'; -import { useHistory } from 'react-router-dom'; +import React, { useState } from 'react'; import { compose } from 'redux'; import { connect } from 'react-redux'; import ReactTooltip from 'react-tooltip'; -import { setQueryParam, deleteQueryParam } from '@eeacms/volto-datablocks/actions'; -import _uniqueId from 'lodash/uniqueId'; +import { + setQueryParam, + deleteQueryParam, +} from '@eeacms/volto-datablocks/actions'; import Icon from '@plone/volto/components/theme/Icon/Icon'; -import RenderTable from '../RenderTable'; import PermitingAuthority from '../PermitingAuthority'; -import moment from 'moment'; import cx from 'classnames'; -import { getDate, getLonLat } from '../helpers'; +import { getDate } from '../helpers'; import infoSVG from '@plone/volto/icons/info.svg'; import './style.css'; const View = (props) => { - const history = useHistory(); const [aels, setAels] = useState(false); const { siteInspireId = null, @@ -67,7 +65,12 @@ const View = (props) => { {/* ABOUT THE ENTITY */}

About the entity

- + { {/* BAT CONCLUSION */}

BAT conclusions

- +