@@ -12,14 +12,14 @@ import withTour from '../components/tour/withTour.js'
1212import InfoBoxes from './info-boxes/InfoBoxes.js'
1313import FilePreview from './file-preview/FilePreview.js'
1414import FilesList from './files-list/FilesList.js'
15+ import FileNotFound from './file-not-found/FileNotFound.js'
1516import { getJoyrideLocales } from '../helpers/i8n.js'
1617
1718// Icons
1819import Modals , { DELETE , NEW_FOLDER , ADD_BY_CAR , SHARE , RENAME , ADD_BY_PATH , BULK_CID_IMPORT , CLI_TUTOR_MODE , PINNING , PUBLISH } from './modals/Modals.js'
1920import Header from './header/Header.js'
2021import FileImportStatus from './file-import-status/FileImportStatus.js'
2122import { useExplore } from 'ipld-explorer-components/providers'
22- import { FileNotFound } from './file-not-found/FileNotFound.js'
2323
2424const FilesPage = ( {
2525 doFetchPinningServices, doFilesFetch, doPinsFetch, doFilesSizeGet, doFilesDownloadLink, doFilesDownloadCarLink, doFilesWrite, doAddCarFile, doFilesBulkCidImport, doFilesAddPath, doUpdateHash,
@@ -229,7 +229,7 @@ const FilesPage = ({
229229
230230 < MainView t = { t } files = { files } remotePins = { remotePins } pendingPins = { pendingPins } failedPins = { failedPins } doExploreUserProvidedPath = { doExploreUserProvidedPath } />
231231
232- < Preview files = { files } path = { filesPathInfo . path } onDownload = { ( ) => onDownload ( [ files ] ) } />
232+ < Preview files = { files } path = { filesPathInfo . path } t = { t } onDownload = { ( ) => onDownload ( [ files ] ) } />
233233
234234 < InfoBoxes isRoot = { filesPathInfo . isMfs && filesPathInfo . isRoot }
235235 isCompanion = { false }
@@ -265,13 +265,13 @@ const FilesPage = ({
265265 )
266266}
267267
268- const Preview = ( { files, path, onDownload } ) => {
268+ const Preview = ( { files, path, t , onDownload } ) => {
269269 if ( files && files . type === 'file' ) {
270270 return ( < FilePreview { ...files } onDownload = { onDownload } /> )
271271 }
272272
273273 return (
274- < FileNotFound path = { path } />
274+ < FileNotFound path = { path } t = { t } />
275275 )
276276}
277277
0 commit comments