forked from trussworks/react-file-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from trussworks/pm-add-xls-unsupported-view
update unsupported view
- Loading branch information
Showing
7 changed files
with
447 additions
and
520 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,5 @@ | ||
/** | ||
* @license | ||
* Copyright 2010-2022 Three.js Authors | ||
* SPDX-License-Identifier: MIT | ||
*/ |
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 |
---|---|---|
@@ -1,16 +1,22 @@ | ||
// Copyright (c) 2017 PlanGrid, Inc. | ||
|
||
import React from 'react'; | ||
import 'styles/unsupported.scss'; | ||
import React from 'react' | ||
import 'styles/unsupported.scss' | ||
|
||
const UnsupportedViewer = props => ( | ||
const UnsupportedViewer = (props) => ( | ||
<div className="pg-driver-view"> | ||
<div className="unsupported-message"> | ||
{props.unsupportedComponent | ||
? <props.unsupportedComponent {...props} /> | ||
: <p className="alert"><b>{`.${props.fileType}`}</b> is not supported.</p>} | ||
{props.unsupportedComponent ? ( | ||
<props.unsupportedComponent {...props} /> | ||
) : ( | ||
<p> | ||
No preview available for this kind of file. | ||
<br /> | ||
Download file to see the contents. | ||
</p> | ||
)} | ||
</div> | ||
</div> | ||
); | ||
) | ||
|
||
export default UnsupportedViewer; | ||
export default UnsupportedViewer |
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
Oops, something went wrong.