feat: add missing propTypes
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { StepPropType } from 'propTypes/propTypes';
|
||||
|
||||
export const StepExecutionsContext = React.createContext([]);
|
||||
|
||||
export const StepExecutionsProvider = (props) => {
|
||||
const { children, value } = props;
|
||||
return (
|
||||
@@ -8,3 +12,8 @@ export const StepExecutionsProvider = (props) => {
|
||||
</StepExecutionsContext.Provider>
|
||||
);
|
||||
};
|
||||
|
||||
StepExecutionsProvider.propTypes = {
|
||||
children: PropTypes.node.isRequired,
|
||||
value: PropTypes.arrayOf(StepPropType),
|
||||
};
|
||||
|
Reference in New Issue
Block a user