ohmyform-ui/components/form/admin/design.tab.tsx
Michael Schramm 8713c0a8c6 - ability to change user passwords
- add default page background
- add environment list in [doc](doc/environment.md)
- combined notificationts to become more versatile
- use exported hooks for graphql
- links at the bottom for new users
- fixes for hide contrib setting
- upgrad all packages
2021-05-02 12:43:55 +02:00

28 lines
797 B
TypeScript

import { Form, Input, Tabs } from 'antd'
import { TabPaneProps } from 'antd/lib/tabs'
import React from 'react'
import { useTranslation } from 'react-i18next'
import { InputColor } from '../../input/color'
export const DesignTab: React.FC<TabPaneProps> = (props) => {
const { t } = useTranslation()
return (
<Tabs.TabPane {...props}>
<Form.Item label={t('form:design.font')} name={['form', 'design', 'font']}>
<Input />
</Form.Item>
{['background', 'question', 'answer', 'button', 'buttonActive', 'buttonText'].map((name) => (
<Form.Item
key={name}
label={t(`form:design.color.${name}`)}
name={['form', 'design', 'colors', name]}
>
<InputColor />
</Form.Item>
))}
</Tabs.TabPane>
)
}