Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 74f4cc9

Browse files
committed
fix required childern prop
1 parent 2abd1a8 commit 74f4cc9

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

docs/package-lock.json

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@types/react-dom": "18.0.11",
1515
"eslint": "8.35.0",
1616
"eslint-config-next": "13.2.3",
17-
"jb-date-input-react": "^2.0.1",
17+
"jb-date-input-react": "^2.0.5",
1818
"next": "13.2.3",
1919
"react": "18.2.0",
2020
"react-dom": "18.2.0",

lib/JBDateInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export type JBDateInputProps = {
3838
required?: boolean,
3939
calendarDefaultDateView?:{ year:number, month: number, dateType:InputTypes},
4040
usePersianNumber?: boolean,
41-
children:React.ReactNode,
41+
children:React.ReactNode | undefined | null,
4242
}
4343

4444
const JBDateInput = React.forwardRef((props: JBDateInputProps, ref) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react component",
1919
"react"
2020
],
21-
"version": "2.0.5",
21+
"version": "2.0.6",
2222
"bugs": "https://github.com/javadbat/jb-date-input-react/issues",
2323
"license": "MIT",
2424
"files": [

0 commit comments

Comments
 (0)