diff options
| author | bobzel <zzzman@gmail.com> | 2024-05-19 00:05:18 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-05-19 00:05:18 -0400 |
| commit | 38742d5f491ed5232a381da63e126b609cf14aad (patch) | |
| tree | a723b0c9dfffa717b70df383d21fb3b14567308f /src/client/views/newlightbox/components/Recommendation/Recommendation.tsx | |
| parent | a3784cd3ab990d8016b1168eb0cbf7e9a2f22301 (diff) | |
| parent | 0b451af28e5aef6b749da61e8a9fcd0a840789ac (diff) | |
Merge branch 'restoringEslint' into aisosa-starter
Diffstat (limited to 'src/client/views/newlightbox/components/Recommendation/Recommendation.tsx')
| -rw-r--r-- | src/client/views/newlightbox/components/Recommendation/Recommendation.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/views/newlightbox/components/Recommendation/Recommendation.tsx b/src/client/views/newlightbox/components/Recommendation/Recommendation.tsx index 23027808f..375408d01 100644 --- a/src/client/views/newlightbox/components/Recommendation/Recommendation.tsx +++ b/src/client/views/newlightbox/components/Recommendation/Recommendation.tsx @@ -1,12 +1,12 @@ import * as React from 'react'; -import { IRecommendation } from './utils'; -import './Recommendation.scss'; -import { getType } from '../../utils'; import { FaEyeSlash } from 'react-icons/fa'; -import { NewLightboxView } from '../../NewLightboxView'; -import { DocumentManager } from '../../../../util/DocumentManager'; import { Doc } from '../../../../../fields/Doc'; import { Docs } from '../../../../documents/Documents'; +import { DocumentView } from '../../../nodes/DocumentView'; +import { NewLightboxView } from '../../NewLightboxView'; +import { getType } from '../../utils'; +import './Recommendation.scss'; +import { IRecommendation } from './utils'; export const Recommendation = (props: IRecommendation) => { const { title, data, type, text, transcript, loading, source, previewUrl, related_concepts, distance, docId } = props; @@ -17,7 +17,7 @@ export const Recommendation = (props: IRecommendation) => { onClick={() => { let doc: Doc | null = null; if (source == 'Dash' && docId) { - const docView = DocumentManager.Instance.getDocumentViewsById(docId).lastElement(); + const docView = DocumentView.getDocumentViewsById(docId).lastElement(); if (docView) { doc = docView.Document; } |
