Fix circular dependency issue breaking build
This commit is contained in:
parent
c3ed3c1eed
commit
7adae0e9d5
@ -2,7 +2,6 @@ import React, { FC, useEffect, useState } from 'react';
|
||||
import classNames from 'classnames';
|
||||
import { Input, Form, InputNumber, Button } from 'antd';
|
||||
import { FieldUpdaterFunc } from '../../types/config-section';
|
||||
// import InfoTip from '../info-tip';
|
||||
import { StatusState } from '../../utils/input-statuses';
|
||||
import { FormStatusIndicator } from './FormStatusIndicator';
|
||||
import { PASSWORD_COMPLEXITY_RULES, REGEX_PASSWORD } from '../../utils/config-constants';
|
||||
|
@ -1,7 +1,6 @@
|
||||
// DEFAULT VALUES
|
||||
import { fetchData, SERVER_CONFIG_UPDATE_URL } from './apis';
|
||||
import { ApiPostArgs, VideoVariant, SocialHandle } from '../types/config-section';
|
||||
import { TEXTFIELD_TYPE_URL } from '../components/admin/TextField';
|
||||
import { DEFAULT_TEXTFIELD_URL_PATTERN } from './urls';
|
||||
|
||||
export const TEXT_MAXLENGTH = 255;
|
||||
@ -49,6 +48,8 @@ export const API_FEDERATION_GOLIVE_MESSAGE = '/federation/livemessage';
|
||||
export const API_FEDERATION_SHOW_ENGAGEMENT = '/federation/showengagement';
|
||||
export const API_FEDERATION_BLOCKED_DOMAINS = '/federation/blockdomains';
|
||||
|
||||
const TEXTFIELD_TYPE_URL = 'url';
|
||||
|
||||
export async function postConfigUpdateToAPI(args: ApiPostArgs) {
|
||||
const { apiPath, data, onSuccess, onError } = args;
|
||||
const result = await fetchData(`${SERVER_CONFIG_UPDATE_URL}${apiPath}`, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user