diff --git a/pages/reacthookform/index.js b/pages/reacthookform/index.js index 22e57bbd8c..f1644519ff 100644 --- a/pages/reacthookform/index.js +++ b/pages/reacthookform/index.js @@ -1,19 +1,19 @@ +import Head from 'next/head'; import React, { useEffect, useState } from 'react'; -import { useForm, Controller } from 'react-hook-form'; -import { InputText } from '../../components/lib/inputtext/InputText'; +import { Controller, useForm } from 'react-hook-form'; +import { DocActions } from '../../components/doc/common/docactions'; +import { useLiveEditorTabs } from '../../components/doc/common/liveeditor'; import { Button } from '../../components/lib/button/Button'; -import { Dropdown } from '../../components/lib/dropdown/Dropdown'; import { Calendar } from '../../components/lib/calendar/Calendar'; -import { Password } from '../../components/lib/password/Password'; import { Checkbox } from '../../components/lib/checkbox/Checkbox'; import { Dialog } from '../../components/lib/dialog/Dialog'; import { Divider } from '../../components/lib/divider/Divider'; +import { Dropdown } from '../../components/lib/dropdown/Dropdown'; +import { InputText } from '../../components/lib/inputtext/InputText'; +import { Password } from '../../components/lib/password/Password'; import { TabView } from '../../components/lib/tabview/TabView'; -import { CountryService } from '../../service/CountryService'; import { classNames } from '../../components/lib/utils/ClassNames'; -import { useLiveEditorTabs } from '../../components/doc/common/liveeditor'; -import { DocActions } from '../../components/doc/common/docactions'; -import Head from 'next/head'; +import { CountryService } from '../../service/CountryService'; const ReactHookFormDemo = () => { const [countries, setCountries] = useState([]); @@ -108,7 +108,7 @@ const ReactHookFormDemo = () => { name="name" control={control} rules={{ required: 'Name is required.' }} - render={({ field, fieldState }) => } + render={({ field, fieldState }) => } />