import React from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from 'react-i18next'; import { createSubscribedElement } from '../../UnstatedUtils'; import AppContainer from '../../../services/AppContainer'; import MarkDownSettingContainer from '../../../services/MarkDownSettingContainer'; import WhiteListInput from './WhiteListInput'; class XssForm extends React.Component { constructor(props) { super(props); this.onClickSubmit = this.onClickSubmit.bind(this); } async onClickSubmit() { // TODO GW-303 create apiV3 of update setting } xssOptions() { const { t, markDownSettingContainer } = this.props; const { xssOption } = markDownSettingContainer.state; return (
); } render() { const { t, markDownSettingContainer } = this.props; const { isEnabledXss } = markDownSettingContainer.state; return (