Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Use `propTypes` as `props` (#666)

Dhruv Bhanushali1f90e2e99ae2
diff --git a/src/components/VAudioTrack/VAudioTrack.vue b/src/components/VAudioTrack/VAudioTrack.vue
index 8c3a54ff0..463483ad5 100644
--- a/src/components/VAudioTrack/VAudioTrack.vue
+++ b/src/components/VAudioTrack/VAudioTrack.vue
@@ -110,33 +110,7 @@ export default defineComponent({
VBoxLayout,
VGlobalLayout,
},
- props: {
- /**
- * the information about the track, typically from a track's detail endpoint
- */
- audio: {
- type: Object,
- required: true,
- },
- /**
- * the arrangement of the contents on the canvas; This determines the
- * overall L&F of the audio component.
- */
- layout: {
- type: String,
- default: 'full',
- validator: (val) => ['full', 'box', 'row', 'global'].includes(val),
- },
- /**
- * the size of the component; Both 'box' and 'row' layouts offer multiple
- * sizes to choose from.
- */
- size: {
- type: String,
- default: 'm',
- validator: (val) => ['s', 'm', 'l', 'full'].includes(val),
- },
- },
+ props: propTypes,
setup(props) {
const store = useStore()
const route = useRoute()