Skip to content

Commit

Permalink
🎨 Build failing
Browse files Browse the repository at this point in the history
  • Loading branch information
VioMrqs committed Sep 19, 2024
1 parent 7617831 commit 979731c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Button from '@codegouvfr/react-dsfr/Button';
import RadioButtons, { RadioButtonsProps } from '@codegouvfr/react-dsfr/RadioButtons';

import { Routes } from '@potentiel-applications/routes';
import { DEFAULT_FILE_SIZE_LIMIT_IN_MB } from '@potentiel-libraries/file-storage';
import { DEFAULT_UPLOAD_FILE_SIZE_LIMIT_IN_MB } from '@potentiel-libraries/file-storage';

import { Icon } from '../Icon';

Expand Down Expand Up @@ -67,9 +67,9 @@ const UploadNewDocument: FC<Omit<UploadDocumentProps, 'documentKey'>> = ({
setUploadFileName(fileName);
}}
/>
<div className="fr-hint-text">
{`Taille maximale de fichier : ${DEFAULT_FILE_SIZE_LIMIT_IN_MB} MB`}
</div>
<label className="fr-hint-text">
{`Taille maximale de fichier : ${DEFAULT_UPLOAD_FILE_SIZE_LIMIT_IN_MB} MB`}
</label>

<Button className="!mt-0" type="button" priority="secondary" onClick={browseForFile}>
<Icon id="fr-icon-folder-2-fill" className="md:mr-1" />
Expand Down
1 change: 0 additions & 1 deletion packages/libraries/file-storage/src/constant.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/libraries/file-storage/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ export * from './getClient';
export * from './copyFolder';
export * from './copyFile';
export * from './renameFile';
export * from './constant';
2 changes: 2 additions & 0 deletions packages/libraries/file-storage/src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Upload } from '@aws-sdk/lib-storage';
import { getBucketName } from './getBucketName';
import { getClient } from './getClient';

export const DEFAULT_UPLOAD_FILE_SIZE_LIMIT_IN_MB = 5;

/**
*
* @todo ici la key devrait être un IdentifiantDocumentProjet et la
Expand Down

0 comments on commit 979731c

Please sign in to comment.