Skip to content

Commit

Permalink
Add propTypes to ItemMetadataView
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Sep 18, 2020
1 parent b32e802 commit ebe9518
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ItemMetadataView.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types'
import { makeStyles, Grid, Paper } from '@material-ui/core';
import { Alert } from '@material-ui/lab'

Expand Down Expand Up @@ -40,4 +41,9 @@ export default function ItemMetadataView({item}){
</Grid>
</>
);
}
}

ItemV.ItemMetadataView = {
/** The item to be displayed. */
"item": PropTypes.object.isRequired
};

0 comments on commit ebe9518

Please sign in to comment.