Skip to content

Commit de1494c

Browse files
committed
Cleanup: declare before export.
1 parent 145f00c commit de1494c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/views/charts/ChartProps.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ import PropTypes from 'prop-types'
33
const sizes = ['small', 'large']
44
const chartTypes = ['bars', 'pie', 'table']
55

6-
export default {
6+
const chartProps = {
77
sizes: sizes,
88
chartTypes: chartTypes,
99
chartProps: {
1010
data: PropTypes.any,
1111
size: PropTypes.oneOf(sizes),
1212
}
13-
}
13+
}
14+
15+
export default chartProps

0 commit comments

Comments
 (0)