feat: add missing propTypes

This commit is contained in:
kasia.oczkowska
2024-06-05 13:26:56 +01:00
parent 725b38c697
commit 3f5df118a0
53 changed files with 597 additions and 81 deletions

View File

@@ -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),
};