fix(storybook): Fixing broken UI Storybook components' pages (#3455)

This commit is contained in:
Bruno Alves de Faria authored and GitHub committed 2023-06-07 09:05:35 -04:00
1 parent 9ee13860a2
commit 874260340a
49 files changed
+194 -91

No files matched your search

@@ -1,7 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';
import { DateRange, InputLabelWrapper } from '../';
import DateRange from '../DateRange';
import InputLabelWrapper from '../InputLabelWrapper';
const InputDateRange = ({
id,
@@ -14,7 +15,7 @@ const InputDateRange = ({
}) => {
const { startDate, endDate } = value;
const onClickHandler = (event) => {
const onClickHandler = event => {
event.preventDefault();
onLabelClick(event);
};
@@ -38,11 +39,11 @@ const InputDateRange = ({
);
};
const noop = () => { };
const noop = () => {};
InputDateRange.defaultProps = {
value: {},
onLabelClick: noop
onLabelClick: noop,
};
InputDateRange.propTypes = {