-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Preview): show
PreviewNotFound
when we don't have access to the…
… version if we don't have access to the particular version the user is trying to view, because the original owner of the dataset has not published it, show the `PreviewNotFound` component which explains the circumstances.
- Loading branch information
Showing
5 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react' | ||
export const lostBlob = require('../../assets/lost_blob.png') // eslint-disable-line | ||
|
||
const PreviewNotFound: React.FC = () => { | ||
return ( | ||
<div className="preview-not-found"> | ||
<div className="container"> | ||
<img className='graphic' src={lostBlob} /> | ||
<h3>We can't get you this version... because we don't have it!</h3> | ||
<p>This isn't a problem or error with Qri. It just means that, although we know this version exists, the author of this dataset hasn't published it :)</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default PreviewNotFound |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.preview-not-found { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
.container { | ||
width: 400px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
.graphic { | ||
width: 200px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,3 +52,4 @@ | |
@import "0.4.0/form"; | ||
@import "0.4.0/network"; | ||
@import "0.4.0/dataset"; | ||
@import "0.4.0/preview"; |