MSP-3289 change input to textArea in App pages
This commit is contained in:
1 parent
0f4bf2e5b0
commit
f20b30636c
2 files changed
+15
-7
No files matched your search
@@ -28,7 +28,8 @@ import { routePaths } from '@routes/routePaths.ts'
|
||||
|
||||
import './applications-content.scss'
|
||||
|
||||
const { FormInput } = FormComponents
|
||||
|
||||
const { FormInput, FormTextArea } = FormComponents
|
||||
const { EmptyData, Column } = Layout
|
||||
|
||||
interface ApplicationsContentPropTypes {
|
||||
@@ -222,7 +223,8 @@ const ApplicationsContent: FC<ApplicationsContentPropTypes> = ({
|
||||
label="Наименование"
|
||||
rules={{ required: ValidationRules.required }}
|
||||
/>
|
||||
<FormInput
|
||||
<FormTextArea
|
||||
autoSize={{ minRows: 2, maxRows: 6 }}
|
||||
control={controlApplicationApp}
|
||||
label="Описание"
|
||||
name="description"
|
||||
@@ -249,7 +251,8 @@ const ApplicationsContent: FC<ApplicationsContentPropTypes> = ({
|
||||
label="Наименование"
|
||||
rules={{ required: ValidationRules.required }}
|
||||
/>
|
||||
<FormInput
|
||||
<FormTextArea
|
||||
autoSize={{ minRows: 2, maxRows: 6 }}
|
||||
control={controlApplicationApp}
|
||||
label="Описание"
|
||||
name="description"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { List, message, Spin, Tooltip } from 'antd'
|
||||
import { Layout, FormComponents } from 'isp-ui-kit'
|
||||
import { FormComponents, Layout } from 'isp-ui-kit'
|
||||
import { ColumnItem } from 'isp-ui-kit/dist/Layout/Column/column.type'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { useForm } from 'react-hook-form'
|
||||
@@ -30,8 +30,9 @@ import { PermissionKeysType } from '@type/roles.type.ts'
|
||||
|
||||
import './applications-page.scss'
|
||||
|
||||
|
||||
const { Column, EmptyData } = Layout
|
||||
const { FormInput } = FormComponents
|
||||
const { FormInput, FormTextArea } = FormComponents
|
||||
|
||||
const ApplicationsPage = () => {
|
||||
const navigate = useNavigate()
|
||||
@@ -208,7 +209,9 @@ const ApplicationsPage = () => {
|
||||
label="Наименование"
|
||||
rules={{ required: ValidationRules.required }}
|
||||
/>
|
||||
<FormInput control={control} label="Описание" name="description" />
|
||||
<FormTextArea
|
||||
autoSize={{ minRows: 2, maxRows: 6 }}
|
||||
control={control} label="Описание" name="description" />
|
||||
</form>
|
||||
</Modal>
|
||||
|
||||
@@ -231,7 +234,9 @@ const ApplicationsPage = () => {
|
||||
label="Наименование"
|
||||
rules={{ required: ValidationRules.required }}
|
||||
/>
|
||||
<FormInput control={control} label="Описание" name="description" />
|
||||
<FormTextArea
|
||||
autoSize={{ minRows: 2, maxRows: 6 }}
|
||||
control={control} label="Описание" name="description" />
|
||||
</form>
|
||||
</Modal>
|
||||
</main>
|
||||
|
||||
Reference in new issue
Block a user