mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
fix lint error
This commit is contained in:
parent
561a8d6f10
commit
5d8cbbdf4e
@ -1,16 +1,10 @@
|
|||||||
import { DeleteOutlined, PlusOutlined } from '@ant-design/icons/lib'
|
import { DeleteOutlined, PlusOutlined } from '@ant-design/icons/lib'
|
||||||
import { Button, Card, Checkbox, Form, Input, Popconfirm, Popover, Select, Space, Tabs, Tag } from 'antd'
|
import { Button, Card, Checkbox, Form, Input, Popconfirm, Space, Tabs } from 'antd'
|
||||||
import { FormInstance } from 'antd/lib/form'
|
|
||||||
import { TabPaneProps } from 'antd/lib/tabs'
|
import { TabPaneProps } from 'antd/lib/tabs'
|
||||||
import { FieldData } from 'rc-field-form/lib/interface'
|
import React from 'react'
|
||||||
import React, { useCallback, useState } from 'react'
|
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { AdminFormFieldFragment } from '../../../graphql/fragment/admin.form.fragment'
|
|
||||||
import { FieldCard } from './field.card'
|
|
||||||
import { adminTypes } from './types'
|
|
||||||
|
|
||||||
interface Props extends TabPaneProps {
|
interface Props extends TabPaneProps {}
|
||||||
}
|
|
||||||
|
|
||||||
export const HooksTab: React.FC<Props> = (props) => {
|
export const HooksTab: React.FC<Props> = (props) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
@ -18,7 +12,7 @@ export const HooksTab: React.FC<Props> = (props) => {
|
|||||||
return (
|
return (
|
||||||
<Tabs.TabPane {...props}>
|
<Tabs.TabPane {...props}>
|
||||||
<Form.List name={['form', 'hooks']}>
|
<Form.List name={['form', 'hooks']}>
|
||||||
{(hooks, { add, remove, move }) => {
|
{(hooks, { add, remove }) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Form.Item wrapperCol={{ span: 24 }}>
|
<Form.Item wrapperCol={{ span: 24 }}>
|
||||||
@ -34,7 +28,7 @@ export const HooksTab: React.FC<Props> = (props) => {
|
|||||||
const defaults = {
|
const defaults = {
|
||||||
id: `NEW-${Date.now()}`,
|
id: `NEW-${Date.now()}`,
|
||||||
enabled: false,
|
enabled: false,
|
||||||
url: ''
|
url: '',
|
||||||
}
|
}
|
||||||
|
|
||||||
add(defaults)
|
add(defaults)
|
||||||
|
|||||||
@ -7,7 +7,6 @@ import { useRouter } from 'next/router'
|
|||||||
import React, { CSSProperties, FunctionComponent } from 'react'
|
import React, { CSSProperties, FunctionComponent } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { ME_QUERY, MeQueryData } from '../graphql/query/me.query'
|
import { ME_QUERY, MeQueryData } from '../graphql/query/me.query'
|
||||||
import { SETTINGS_QUERY, SettingsQueryData } from '../graphql/query/settings.query'
|
|
||||||
import { languages } from '../i18n'
|
import { languages } from '../i18n'
|
||||||
import { sideMenu, SideMenuElement } from './sidemenu'
|
import { sideMenu, SideMenuElement } from './sidemenu'
|
||||||
import GitHubButton from 'react-github-button'
|
import GitHubButton from 'react-github-button'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user