fix(storybook): Fixing broken UI Storybook components' pages (#3455)
This commit is contained in:
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 = {
|
||||
|
||||
Reference in new issue
Block a user