diff --git a/back/config/plugins.js b/back/config/plugins.js index 19a423d..7525c97 100644 --- a/back/config/plugins.js +++ b/back/config/plugins.js @@ -1,14 +1,14 @@ module.exports = ({ env }) => ({ email: { - provider: "nodemailer", + provider: 'nodemailer', providerOptions: { - host: env("SMTP_HOST", "localhost"), - port: env("SMTP_PORT", 25), + host: env('SMTP_HOST', 'localhost'), + port: env('SMTP_PORT', 25), auth: - env("SMTP_USERNAME", null) && env("SMTP_PASSWORD", null) + env('SMTP_USERNAME', null) && env('SMTP_PASSWORD', null) ? { - user: env("SMTP_USERNAME"), - pass: env("SMTP_PASSWORD"), + user: env('SMTP_USERNAME'), + pass: env('SMTP_PASSWORD'), } : undefined, ignoreTLS: true, @@ -19,7 +19,7 @@ module.exports = ({ env }) => ({ }, }, upload: { - provider: env('NODE_ENV') === 'development' ? 'local' : "do", + provider: process.env.NODE_ENV === 'development' ? 'local' : 'do', providerOptions: { key: process.env.DO_SPACE_ACCESS_KEY, secret: process.env.DO_SPACE_SECRET_KEY, @@ -29,4 +29,4 @@ module.exports = ({ env }) => ({ cdn: process.env.DO_SPACE_CDN, }, }, -}); +}) diff --git a/back/extensions/documentation/documentation/1.0.0/full_documentation.json b/back/extensions/documentation/documentation/1.0.0/full_documentation.json index 807d4ab..64cd0b0 100644 --- a/back/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/back/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "03/01/2024 12:10:27 PM" + "x-generation-date": "03/01/2024 1:25:41 PM" }, "x-strapi-config": { "path": "/documentation", diff --git a/web/components/Account/Application/Company/ApplicationCompanyListItem.tsx b/web/components/Account/Application/Company/ApplicationCompanyListItem.tsx index 64fb742..db4cf8b 100644 --- a/web/components/Account/Application/Company/ApplicationCompanyListItem.tsx +++ b/web/components/Account/Application/Company/ApplicationCompanyListItem.tsx @@ -37,12 +37,12 @@ const ApplicationCompanyListItem = ({ application }: Props) => { return ( - + {application?.id} - + { //@ts-expect-error @@ -51,22 +51,22 @@ const ApplicationCompanyListItem = ({ application }: Props) => { } - + {/* @ts-expect-error */} {application?.disponibility?.espace?.name} - + {`${format( application?.disponibility.start, 'dd/MM', )} → ${format(application?.disponibility.end, 'dd/MM')}`} - + {application?.creation_title} - + {currentCampaign?.mode === 'applications' && ( { if (['disponibilities', 'applications']?.includes(selectedCampaign?.mode)) { return null } - const { onOpen, onClose, isOpen } = useDisclosure() - const [downloadedApplications, setDownloadedApplications] = useState([]) return ( - <> + - {applications?.map((application) => ( - { - setDownloadedApplications([...downloadedApplications, id]) - }} - /> - ))} - + ) } diff --git a/web/components/Account/Application/Place/ApplicationPlaceFetcher.tsx b/web/components/Account/Application/Place/ApplicationPlaceData.tsx similarity index 90% rename from web/components/Account/Application/Place/ApplicationPlaceFetcher.tsx rename to web/components/Account/Application/Place/ApplicationPlaceData.tsx index 2458e89..2b12fae 100644 --- a/web/components/Account/Application/Place/ApplicationPlaceFetcher.tsx +++ b/web/components/Account/Application/Place/ApplicationPlaceData.tsx @@ -4,7 +4,7 @@ import Loading from '~components/Loading' import { useEffect } from 'react' import { useRouter } from 'next/router' -const ApplicationPlaceFetcher = ({ searchParams }) => { +const ApplicationPlaceData = ({ searchParams }) => { const { query } = useRouter() const { data: applications, @@ -33,4 +33,4 @@ const ApplicationPlaceFetcher = ({ searchParams }) => { ) } -export default ApplicationPlaceFetcher +export default ApplicationPlaceData diff --git a/web/components/Account/Application/Place/ApplicationPlaceListItem.tsx b/web/components/Account/Application/Place/ApplicationPlaceListItem.tsx index 723c9f9..b0305e3 100644 --- a/web/components/Account/Application/Place/ApplicationPlaceListItem.tsx +++ b/web/components/Account/Application/Place/ApplicationPlaceListItem.tsx @@ -19,12 +19,12 @@ const ApplicationPlaceListItem = ({ application, onSelect }: Props) => { return ( - + {application?.id} - + { >{`${application?.company?.structureName} (${application.company.firstname} ${application.company.lastname})`} - + {application?.company?.email} - + {application?.creation_title} {['preselections', 'closed']?.includes(selectedCampaign?.mode) && ( - +