feat: -rm proxy type form control
This commit is contained in:
@@ -18,7 +18,6 @@ const FormControl = styled(Box)({
|
|||||||
|
|
||||||
const ProxyForm: React.FC = () => {
|
const ProxyForm: React.FC = () => {
|
||||||
const [proxyConfig, setProxyConfig] = useState({
|
const [proxyConfig, setProxyConfig] = useState({
|
||||||
type: 'http',
|
|
||||||
server: '',
|
server: '',
|
||||||
username: '',
|
username: '',
|
||||||
password: '',
|
password: '',
|
||||||
@@ -45,20 +44,6 @@ const ProxyForm: React.FC = () => {
|
|||||||
return (
|
return (
|
||||||
<FormContainer>
|
<FormContainer>
|
||||||
<form onSubmit={handleSubmit}>
|
<form onSubmit={handleSubmit}>
|
||||||
<FormControl>
|
|
||||||
<Typography variant="subtitle1" gutterBottom>Select Proxy Type</Typography>
|
|
||||||
<RadioGroup
|
|
||||||
name="type"
|
|
||||||
value={proxyConfig.type}
|
|
||||||
onChange={handleChange}
|
|
||||||
row
|
|
||||||
>
|
|
||||||
<FormControlLabel value="http" control={<Radio />} label="HTTP" />
|
|
||||||
<FormControlLabel value="https" control={<Radio />} label="HTTPS" />
|
|
||||||
<FormControlLabel value="socks5" control={<Radio />} label="SOCKS5" />
|
|
||||||
</RadioGroup>
|
|
||||||
</FormControl>
|
|
||||||
|
|
||||||
<Typography variant="subtitle1" gutterBottom style={{ marginBottom: '20px', marginTop: '20px' }}>Proxy Configuration</Typography>
|
<Typography variant="subtitle1" gutterBottom style={{ marginBottom: '20px', marginTop: '20px' }}>Proxy Configuration</Typography>
|
||||||
|
|
||||||
<FormControl>
|
<FormControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user