Skip to content

Commit

Permalink
fix: add prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
mediremi committed Feb 16, 2021
1 parent 6dfadf1 commit 69acabf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/CustomAppDetails.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useDataQuery } from '@dhis2/app-runtime'
import i18n from '@dhis2/d2-i18n'
import { PropTypes } from '@dhis2/prop-types'
import {
Card,
Divider,
Expand All @@ -13,6 +14,7 @@ import styles from './CustomAppDetails.module.css'
const Screenshots = ({ screenshots }) => {
const [currentScreenshotIndex, setCurrentScreenshotIndex] = useState(0)
const currentScreenshot = screenshots[currentScreenshotIndex]

return (
<div className={styles.screenshots}>
<div>
Expand Down Expand Up @@ -42,6 +44,10 @@ const Screenshots = ({ screenshots }) => {
)
}

Screenshots.propTypes = {
screenshots: PropTypes.array.isRequired,
}

const CustomAppDetails = ({ match }) => {
const query = {
app: {
Expand Down Expand Up @@ -109,4 +115,8 @@ const CustomAppDetails = ({ match }) => {
)
}

CustomAppDetails.propTypes = {
match: PropTypes.object.isRequired,
}

export default CustomAppDetails

0 comments on commit 69acabf

Please sign in to comment.