Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

Commit

Permalink
Add proptypes to record tab component
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbainter committed Apr 22, 2019
1 parent 9394004 commit ca54a8a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/app/record-tab/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useState, useEffect, useMemo } from 'react';
import propTypes from 'prop-types';
import { faTimes, faPlus } from '@fortawesome/free-solid-svg-icons';
import pieces from '@pieces';
import piecesById from '@pieces/by-id';
Expand Down Expand Up @@ -225,4 +226,14 @@ const RecordTabComponent = ({
);
};

RecordTabComponent.propTypes = {
selectedPieceId: propTypes.string.isRequired,
selectPiece: propTypes.func.isRequired,
queueRecordingGeneration: propTypes.func.isRequired,
generatedRecordings: propTypes.object.isRequired,
lastRecordingGenerationLength: propTypes.string.isRequired,
removeRecordingGeneration: propTypes.func.isRequired,
startRecordingGeneration: propTypes.func.isRequired,
};

export default RecordTabComponent;

0 comments on commit ca54a8a

Please sign in to comment.