type wrangling and gymnastics
This commit is contained in:
1 parent
2ae7a2d39e
commit
004f401bc2
2 files changed
+16
-2
No files matched your search
@@ -6,7 +6,7 @@ import useSWR from "swr";
|
||||
import {BiliType, fetcher, StudioEntity} from "../lib/api-streamer";
|
||||
import {useBiliUsers, useTypeTree} from "../lib/use-streamers";
|
||||
|
||||
const TemplateFields: React.FC<FormFCChild> = ({ formState, formApi, values }) => {
|
||||
const TemplateFields: React.FC<FormFCChild<StudioEntity & {isDtime: boolean}>> = ({ formState, formApi, values }) => {
|
||||
const { Section, Input, DatePicker, TimePicker, Select, Switch, InputNumber, Checkbox, CheckboxGroup, RadioGroup, Radio, Cascader, TagInput, TextArea } = Form;
|
||||
const { Text } = Typography;
|
||||
const { typeTree, isError, isLoading } = useTypeTree();
|
||||
|
||||
@@ -4,8 +4,22 @@ import styles from "../../styles/dashboard.module.scss";
|
||||
import { Form, Select, useFormApi } from "@douyinfe/semi-ui";
|
||||
import { IconSetting } from "@douyinfe/semi-icons";
|
||||
|
||||
const t = {
|
||||
LOGGING: {
|
||||
root: {
|
||||
handlers: []
|
||||
},
|
||||
loggers: {
|
||||
biliup: {
|
||||
handlers: []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const Developer: React.FC = () => {
|
||||
const formApi = useFormApi();
|
||||
|
||||
const formApi = useFormApi<typeof t>();
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user