From 1c509ad1da1180ec8b791c47ee085ba3eef3e1a5 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 30 Sep 2024 23:29:06 +0530 Subject: [PATCH] chore: lint --- src/components/organisms/ProxyForm.tsx | 154 ++++++++++++------------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/src/components/organisms/ProxyForm.tsx b/src/components/organisms/ProxyForm.tsx index efa205d8..074f6d9f 100644 --- a/src/components/organisms/ProxyForm.tsx +++ b/src/components/organisms/ProxyForm.tsx @@ -4,96 +4,96 @@ import { styled } from '@mui/system'; import axios from 'axios'; const FormContainer = styled(Box)({ - display: 'flex', - flexDirection: 'column', - gap: '16px', - padding: '20px', - backgroundColor: '#f9f9f9', - borderRadius: '8px', + display: 'flex', + flexDirection: 'column', + gap: '16px', + padding: '20px', + backgroundColor: '#f9f9f9', + borderRadius: '8px', }); const FormControl = styled(Box)({ - marginBottom: '16px', + marginBottom: '16px', }); const ProxyForm: React.FC = () => { - const [proxyConfig, setProxyConfig] = useState({ - type: 'http', - server: '', - username: '', - password: '', - }); + const [proxyConfig, setProxyConfig] = useState({ + type: 'http', + server: '', + username: '', + password: '', + }); - const handleChange = (e: React.ChangeEvent) => { - const { name, value } = e.target; - setProxyConfig({ ...proxyConfig, [name]: value }); - }; + const handleChange = (e: React.ChangeEvent) => { + const { name, value } = e.target; + setProxyConfig({ ...proxyConfig, [name]: value }); + }; - const handleSubmit = async (e: React.FormEvent) => { - e.preventDefault(); - try { - const response = await axios.post('/api/proxy', proxyConfig); - alert(`Success!`); - } catch (error) { - alert('Error submitting proxy configuration'); - } - }; + const handleSubmit = async (e: React.FormEvent) => { + e.preventDefault(); + try { + const response = await axios.post('/api/proxy', proxyConfig); + alert(`Success!`); + } catch (error) { + alert('Error submitting proxy configuration'); + } + }; - return ( - -
- - - } label="HTTP" /> - } label="HTTPS" /> - } label="SOCKS5" /> - - + return ( + + + + + } label="HTTP" /> + } label="HTTPS" /> + } label="SOCKS5" /> + + - - - + + + - - - + + + - - - + + + - - -
- ); + + +
+ ); }; export default ProxyForm;