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

Commit 36eac2c

Browse files
committed
update types
1 parent 200dba1 commit 36eac2c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/src/components/samples/Samples.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import React, { useEffect } from 'react';
22
import { FormalTheme, SamplesSectionWrapper, SamplesTitle } from './styled';
33
import 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';
75
enum 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

0 commit comments

Comments
 (0)