Skip to content

Commit 087c2d0

Browse files
authored
Fix directory of <DateField /> (#1368)
1 parent 0ae9b2d commit 087c2d0

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.changeset/lemon-ligers-doubt.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ingred-ui": patch
3+
---
4+
5+
fix dir of `<DateField />`

src/components/DateField/DateField.tsx renamed to src/components/DateField/DateField/DateField.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React, { forwardRef, memo } from "react";
2-
import { Icon, Input } from "..";
3-
import { useDateField } from "./useDateField";
4-
import { useMergeRefs } from "./utils";
5-
import { CalendarIcon, InputContainer } from "./styled";
6-
import { DateFieldProps } from "./types";
2+
import { Icon, Input } from "../..";
3+
import { useDateField } from "../useDateField";
4+
import { useMergeRefs } from "../utils";
5+
import { CalendarIcon, InputContainer } from "../styled";
6+
import { DateFieldProps } from "../types";
77

88
const DateField = forwardRef<HTMLInputElement, DateFieldProps>(
99
function DateField({ onClick, ...rest }, propRef) {
@@ -21,5 +21,5 @@ const DateField = forwardRef<HTMLInputElement, DateFieldProps>(
2121
},
2222
);
2323

24-
export type { DateFieldProps } from "./types";
24+
export type { DateFieldProps } from "../types";
2525
export default memo(DateField);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from "./DateField";

0 commit comments

Comments
 (0)