This repository was archived by the owner on Dec 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
docs/src/components/samples Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11import React , { useEffect } from 'react' ;
22import { FormalTheme , SamplesSectionWrapper , SamplesTitle } from './styled' ;
33import dynamic from 'next/dynamic' ;
4- // eslint-disable-next-line no-duplicate-imports
5- // import {JBDateInputValueObject } from 'jb-date-input-react';
6- // import {InputTypes as JBDateInputInputTypes} from 'jb-date-input/dist/web-component/jb-date-input/lib/Types';
4+ import { JBDateInputValueObject } from 'jb-date-input-react' ;
75enum InputTypes {
86 jalali = 'JALALI' ,
97 gregorian = 'GREGORIAN'
@@ -17,7 +15,7 @@ const validationList = [
1715 message : 'تاریخ باید تنها در قرن 13 شمسی باشد'
1816 } ,
1917 {
20- validator : ( inputedText : string , valueObject : any , valueText : string ) => {
18+ validator : ( inputedText : string , valueObject : JBDateInputValueObject , valueText : string ) => {
2119 //you can use raw inputed text or formatted text in expected value in argumants
2220 //you have access to both jalali and gregorian date object here in valueObject
2321 // remember valueObject and valueText are both empty and null when date is incomplete
You can’t perform that action at this time.
0 commit comments