diff --git a/web/components/admin/TextField.tsx b/web/components/admin/TextField.tsx index db772f318..a971574fc 100644 --- a/web/components/admin/TextField.tsx +++ b/web/components/admin/TextField.tsx @@ -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'; diff --git a/web/utils/config-constants.tsx b/web/utils/config-constants.tsx index 6835326d5..d48ecae18 100644 --- a/web/utils/config-constants.tsx +++ b/web/utils/config-constants.tsx @@ -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}`, {