Skip to content

Commit 1ab3327

Browse files
committed
fix(DatePicker): removed old react-hook-form datepicker
1 parent 768136f commit 1ab3327

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/components/DatePicker/DatePicker.stories.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export const SingleDatePickerNew = (args) => {
8888
);
8989
};
9090

91+
/*
9192
export const SingleDatePickerNewReactHookForm = (args) => {
9293
const defaultValues = { test: '2020-12-01T11:00:00.000Z' };
9394
const [focused, setFocused] = useState(false);
@@ -120,7 +121,7 @@ export const SingleDatePickerNewReactHookForm = (args) => {
120121
/>
121122
</form>
122123
);
123-
};
124+
};*/
124125

125126
export const DateRangePickerDefault = (args) => (
126127
<DateRangePickerInput {...args} />
@@ -176,6 +177,7 @@ export const DatePickerHookForm = (args) => {
176177
return (
177178
<>
178179
{JSON.stringify(input)}
180+
<br />
179181
<Controller
180182
control={control}
181183
name="test"
@@ -238,6 +240,7 @@ export const DatePickerRangeHookForm = (args) => {
238240
return (
239241
<>
240242
{JSON.stringify(datePickerRange)}
243+
<br />
241244
<Controller
242245
control={control}
243246
name="datePickerRange"

src/documentation/Icons/Icons.stories.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
22
import Button from '../../components/Button';
33
import Blockquote from '../../components/Blockquote';
44
import Link from '../../components/Link';
5-
import IconsComponent from './IconsDocumentation';
5+
import IconsDocumentation from './IconsDocumentation';
66

77
<Meta
88
title="Documentation/Core/Icons"
@@ -14,6 +14,6 @@ import IconsComponent from './IconsDocumentation';
1414
}}
1515
/>
1616

17-
<hr/>
17+
<hr />
1818

19-
<IconsComponent />
19+
<IconsDocumentation />

src/documentation/Icons/IconsDocumentation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ from '@wfp/icons'`}
119119

120120
const wrapperStyle = { display: 'flex', flexWrap: 'wrap', margin: '0 -0.7em' };
121121

122-
const IconsComponent = () => (
122+
const IconsDocumentation = () => (
123123
<>
124124
<p>
125125
For Usage please take a look at the{' '}
@@ -221,4 +221,4 @@ const IconsComponent = () => (
221221
</>
222222
);
223223

224-
export default IconsComponent;
224+
export default IconsDocumentation;

0 commit comments

Comments
 (0)