Skip to content

Commit

Permalink
feat(T247): rimozione grafica data massima inserimento per SCD e aggi…
Browse files Browse the repository at this point in the history
…unta banner per RFD 20241114
  • Loading branch information
federico-tocci-dxc authored and sgravinadxc committed Nov 14, 2024
1 parent 879f3f7 commit eb89c2c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { Button } from 'design-react-kit';
import './csv-uploader-banner.scss';

export default function CSVUploadBanner(props: {
onPrimaryButtonClick: () => void;
onPrimaryButtonClick: () => void,
policy?: string;
}) {
return (
<div className='row w-100 my-4'>
Expand Down Expand Up @@ -32,8 +33,8 @@ export default function CSVUploadBanner(props: {
cittadini e ai servizi di facilitazione erogati presso
le sedi del tuo ente e{' '}
<strong>
acquisiti al di fuori dalla piattaforma prima del 31
ottobre 2024
acquisiti al di fuori dalla piattaforma
{props.policy === 'RFD' && " prima del 31 ottobre 2024"}
</strong>
. Inoltre, puoi consultare il{' '}
<strong>registro dei caricamenti massivi</strong> già
Expand Down
17 changes: 16 additions & 1 deletion fe-piattaforma/src/components/CSVUploader/CSVUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,20 @@ export default function CSVUploader({
setSelectedFile(null);
}, []);

function InfoWindow() {
return (
<div className='mx-3' style={{ backgroundColor: 'white', boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)', marginTop: '125px', height: '150px' }}>
<div style={{ paddingTop: '25px', marginLeft: '20px' }}>
<h5 style={{ color: '#0066cc', marginBottom:'10px', fontWeight:'600' }}>Finestra di caricamento</h5>
<div className='text-secondary'>
Nell'attuale finestra di caricamento è possibile inserire tutti i<br />
servizi erogati <strong>fino al 31 ottobre 2024</strong>.
</div>
</div>
</div>
);
}

return (
<>
<WarningModal
Expand Down Expand Up @@ -214,7 +228,7 @@ export default function CSVUploader({
</div>
</div>
</WarningModal>
<div className={`flex-column min-width-50 ${file ? 'h-auto' : 'h-100'}`}>
<div className={`flex-column min-width-50 ${file ? 'h-auto' : ''}`}>
<div
className={`upload-dragdrop ${
file ? 'success' : ''
Expand Down Expand Up @@ -274,6 +288,7 @@ export default function CSVUploader({
)}
</div>
</div>
{projectDetail?.policy === policy.RFD && <InfoWindow />}
</div>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,7 @@ const ProjectsDetails = () => {
userHeaders.codiceRuoloUtenteLoggato === 'DTD') ? (
<CSVUploadBanner
onPrimaryButtonClick={handleNavigateToCaricamentoDati}
policy={projectDetails?.policy}
></CSVUploadBanner>
) : null}
</div>
Expand Down

0 comments on commit eb89c2c

Please sign in to comment.