Updated no file message for media viewer
This commit is contained in:
parent
e580ea6214
commit
0a2fd25fa2
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ import styles from "./MediaViewer.module.css";
|
|||
*/
|
||||
export function MediaViewer({ file }) {
|
||||
if (file == null)
|
||||
return (<p>No file to render.</p>);
|
||||
return (<p>Use the File Explorer to open an image.</p>);
|
||||
|
||||
if (!["png"].includes(file.extension))
|
||||
return (<p>Invalid file format.</p>);
|
||||
|
|
|
|||
Loading…
Reference in a new issue