File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed
common/components/molecules/DownloadFile
pages/Entity/components/Case Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
- import { ctw } from '@/common/utils/ctw/ctw' ;
2
- import React , { ComponentProps , FunctionComponent } from 'react' ;
3
1
import { DownloadFileSvg } from '@/common/components/atoms/icons' ;
2
+ import { ctw } from '@/common/utils/ctw/ctw' ;
3
+ import { ComponentProps , FunctionComponent } from 'react' ;
4
4
5
5
export interface IDownloadFile extends ComponentProps < 'div' > {
6
6
heading : string ;
Original file line number Diff line number Diff line change 1
1
import { Download , ExternalLinkIcon , FileText } from 'lucide-react' ;
2
2
import { FunctionComponent } from 'react' ;
3
3
4
+ import { ImageViewer } from '@/common/components/organisms/ImageViewer/ImageViewer' ;
4
5
import { ctw } from '@/common/utils/ctw/ctw' ;
5
6
import { isPdf } from '@/common/utils/is-pdf/is-pdf' ;
6
- import { ImageViewer } from '@/common/components/organisms/ImageViewer/ImageViewer' ;
7
7
import { useDocumentsToolbarLogic } from '@/pages/Entity/components/Case/hooks/useDocumentsToolbarLogic/useDocumentsToolbarLogic' ;
8
8
9
9
export const DocumentsToolbar : FunctionComponent < {
@@ -60,9 +60,6 @@ export const DocumentsToolbar: FunctionComponent<{
60
60
< a
61
61
className = { ctw (
62
62
`btn btn-circle btn-ghost btn-sm bg-base-300/70 text-[0.688rem] focus:outline-primary` ,
63
- {
64
- 'pointer-events-none opacity-50' : ! shouldDownload ,
65
- } ,
66
63
) }
67
64
download = { image ?. fileName }
68
65
href = { fileToDownloadBase64 }
Original file line number Diff line number Diff line change 1
- import 'react-image-crop/dist/ReactCrop.css' ;
2
1
import { FunctionComponent } from 'react' ;
2
+ import 'react-image-crop/dist/ReactCrop.css' ;
3
3
4
- import { ctw } from '@/common/utils/ctw/ctw' ;
5
- import { IDocumentsProps } from './interfaces' ;
6
- import { useDocuments } from './hooks/useDocuments/useDocuments' ;
4
+ import { DownloadFile } from '@/common/components/molecules/DownloadFile/DownloadFile' ;
7
5
import { ImageEditor } from '@/common/components/molecules/ImageEditor/ImageEditor' ;
8
6
import { ImageViewer } from '@/common/components/organisms/ImageViewer/ImageViewer' ;
9
- import { DownloadFile } from '@/common/components/molecules/DownloadFile/DownloadFile' ;
10
- import { DocumentsToolbar } from '@/pages/Entity/components/Case/Case.Documents.Toolbar' ;
7
+ import { ctw } from '@/common/utils/ctw/ctw' ;
11
8
import { keyFactory } from '@/common/utils/key-factory/key-factory' ;
9
+ import { DocumentsToolbar } from '@/pages/Entity/components/Case/Case.Documents.Toolbar' ;
10
+ import { useDocuments } from './hooks/useDocuments/useDocuments' ;
11
+ import { IDocumentsProps } from './interfaces' ;
12
12
13
13
/**
14
14
* @description To be used by {@link Case}, and be wrapped by {@link Case.Content}. Displays a single entity's documents using {@link ImageViewer}. Displays documents[0].imageUrl if no document was selected yet.
You can’t perform that action at this time.
0 commit comments