@@ -13,14 +13,13 @@ import InfoBoxes from './info-boxes/InfoBoxes.js'
1313import FilePreview from './file-preview/FilePreview.js'
1414import FilesList from './files-list/FilesList.js'
1515import { getJoyrideLocales } from '../helpers/i8n.js'
16- import Button from '../components/button/button'
1716
1817// Icons
1918import Modals , { DELETE , NEW_FOLDER , ADD_BY_CAR , SHARE , RENAME , ADD_BY_PATH , BULK_CID_IMPORT , CLI_TUTOR_MODE , PINNING , PUBLISH } from './modals/Modals.js'
2019import Header from './header/Header.js'
2120import FileImportStatus from './file-import-status/FileImportStatus.js'
2221import { useExplore } from 'ipld-explorer-components/providers'
23- import GlyphAttention from '../icons/GlyphAttention .js'
22+ import { FileNotFound } from './file-not-found/FileNotFound .js'
2423
2524const FilesPage = ( {
2625 doFetchPinningServices, doFilesFetch, doPinsFetch, doFilesSizeGet, doFilesDownloadLink, doFilesDownloadCarLink, doFilesWrite, doAddCarFile, doFilesBulkCidImport, doFilesAddPath, doUpdateHash,
@@ -272,25 +271,7 @@ const Preview = ({ files, path, onDownload }) => {
272271 }
273272
274273 return (
275- < div
276- className = 'mb3 pa4-l pa2 mw9 center'
277- style = { { background : 'rgba(251, 251, 251)' } }
278- >
279- < div className = 'flex flex-row items-center mb3' >
280- < GlyphAttention style = { { height : 76 } } className = 'fill-red mr' role = 'presentation' />
281- < div className = 'red fw6 truncate' > IPFS can't find this item</ div >
282- </ div >
283- < div className = 'mb3 charcoal fw6 truncate' > { path } </ div >
284- < div className = 'mb3' > These are common troubleshooting steps might help:</ div >
285- < ul >
286- < li > Are there typos in the path you entered?</ li >
287- < li > Was the file moved, renamed, or deleted?</ li >
288- < li > Did you copy a URL or bookmark from another computer? If so, you'll need to < a href = "#/peers" > point this instance at that computer's node</ a > .</ li >
289- </ ul >
290- < a href = "#/files" >
291- < Button className = 'ma2 tc' bg = 'bg-teal' > Go to Home</ Button >
292- </ a >
293- </ div >
274+ < FileNotFound path = { path } />
294275 )
295276}
296277
0 commit comments