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:
parent
682ddf96c3
commit
a67adc9393
@ -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';
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user