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

@@ -10,6 +10,7 @@ import CardContent from '@mui/material/CardContent';
import Divider from '@mui/material/Divider';
import Grid from '@mui/material/Grid';
import Typography from '@mui/material/Typography';
import PropTypes from 'prop-types';
import TrialOverAlert from 'components/TrialOverAlert/index.ee';
import SubscriptionCancelledAlert from 'components/SubscriptionCancelledAlert/index.ee';
@@ -54,6 +55,13 @@ function BillingCard(props) {
);
}
BillingCard.propTypes = {
name: PropTypes.string.isRequired,
title: PropTypes.string,
action: PropTypes.string,
text: PropTypes.string,
};
function Action(props) {
const { action, text } = props;
@@ -80,6 +88,11 @@ function Action(props) {
);
}
Action.propTypes = {
action: PropTypes.string,
text: PropTypes.string,
};
export default function UsageDataInformation() {
const formatMessage = useFormatMessage();
const queryClient = useQueryClient();