0

rename toggleswitch-with-submit to just toggleswitch since by default it now will not submit unless you give it a prop to

This commit is contained in:
gingervitis 2021-02-14 01:46:59 -08:00
parent 682ddf96c3
commit a67adc9393
5 changed files with 4 additions and 6 deletions

View File

@ -2,7 +2,7 @@
import React, { useState, useContext, useEffect } from 'react';
import { Typography } from 'antd';
import ToggleSwitch from './form-toggleswitch-with-submit';
import ToggleSwitch from './form-toggleswitch';
import { ServerStatusContext } from '../../utils/server-status-context';
import { FIELD_PROPS_NSFW, FIELD_PROPS_YP } from '../../utils/config-constants';

View File

@ -19,7 +19,7 @@ import {
} from '../../utils/config-constants';
import { UpdateArgs } from '../../types/config-section';
import ToggleSwitch from './form-toggleswitch-with-submit';
import ToggleSwitch from './form-toggleswitch';
const { Title } = Typography;

View File

@ -1,4 +1,4 @@
import { Switch, Button, Collapse } from 'antd';
import { Button, Collapse } from 'antd';
import classNames from 'classnames';
import React, { useContext, useState, useEffect } from 'react';
import { UpdateArgs } from '../../types/config-section';
@ -21,8 +21,7 @@ import {
import TextField from './form-textfield';
import FormStatusIndicator from './form-status-indicator';
import { isValidUrl } from '../../utils/urls';
import ToggleSwitch from './form-toggleswitch-with-submit';
// import ToggleSwitch from './form-toggleswitch-with-submit';
import ToggleSwitch from './form-toggleswitch';
const { Panel } = Collapse;

View File

@ -6,7 +6,6 @@ import TextField from './form-textfield';
import { DEFAULT_VARIANT_STATE } from '../../utils/config-constants';
import InfoTip from '../info-tip';
import CPUUsageSelector from './cpu-usage';
// import ToggleSwitch from './form-toggleswitch-with-submit';
const { Panel } = Collapse;