Fix prop types on schedule edit

This commit is contained in:
mabashian
2020-04-03 12:56:33 -04:00
parent b0aa795b10
commit 8a8a48a4ff

View File

@@ -2,7 +2,7 @@ import React, { useState } from 'react';
import { withI18n } from '@lingui/react'; import { withI18n } from '@lingui/react';
import { useHistory, useLocation } from 'react-router-dom'; import { useHistory, useLocation } from 'react-router-dom';
import { RRule } from 'rrule'; import { RRule } from 'rrule';
import { object } from 'prop-types'; import { shape } from 'prop-types';
import { Card } from '@patternfly/react-core'; import { Card } from '@patternfly/react-core';
import { CardBody } from '@components/Card'; import { CardBody } from '@components/Card';
import { SchedulesAPI } from '@api'; import { SchedulesAPI } from '@api';
@@ -50,7 +50,7 @@ function ScheduleEdit({ i18n, schedule }) {
} }
ScheduleEdit.propTypes = { ScheduleEdit.propTypes = {
schedule: object.isRequired, schedule: shape.isRequired,
}; };
ScheduleEdit.defaultProps = {}; ScheduleEdit.defaultProps = {};