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

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
javadbat committed Mar 9, 2023
1 parent 200dba1 commit 36eac2c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/src/components/samples/Samples.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import React, { useEffect } from 'react';
import { FormalTheme, SamplesSectionWrapper, SamplesTitle } from './styled';
import dynamic from 'next/dynamic';
// eslint-disable-next-line no-duplicate-imports
// import {JBDateInputValueObject } from 'jb-date-input-react';
// import {InputTypes as JBDateInputInputTypes} from 'jb-date-input/dist/web-component/jb-date-input/lib/Types';
import {JBDateInputValueObject } from 'jb-date-input-react';
enum InputTypes {
jalali = 'JALALI',
gregorian = 'GREGORIAN'
Expand All @@ -17,7 +15,7 @@ const validationList = [
message: 'تاریخ باید تنها در قرن 13 شمسی باشد'
},
{
validator: (inputedText: string, valueObject: any, valueText: string) => {
validator: (inputedText: string, valueObject: JBDateInputValueObject, valueText: string) => {
//you can use raw inputed text or formatted text in expected value in argumants
//you have access to both jalali and gregorian date object here in valueObject
// remember valueObject and valueText are both empty and null when date is incomplete
Expand Down

0 comments on commit 36eac2c

Please sign in to comment.