From d63909005fa6881092a1e257729deeb6be9ec06b Mon Sep 17 00:00:00 2001 From: Ansar Smagulov Date: Fri, 1 Dec 2023 23:16:30 +0600 Subject: [PATCH] refactor(frontend): run prettify on all files --- frontend/src/App.tsx | 32 ++---------- frontend/src/FilterLists/CreateFilterList.tsx | 15 +----- frontend/src/FilterLists/index.tsx | 52 ++++--------------- frontend/src/RequestLog/index.tsx | 15 ++---- frontend/src/SettingsManager/index.tsx | 14 ++--- 5 files changed, 24 insertions(+), 104 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e9af05d4..05c2ff71 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,12 +1,4 @@ -import { - Button, - ButtonGroup, - Icon, - IconSize, - FocusStyleManager, - NonIdealState, - Alert, -} from '@blueprintjs/core'; +import { Button, ButtonGroup, Icon, IconSize, FocusStyleManager, NonIdealState, Alert } from '@blueprintjs/core'; import { useState, useEffect } from 'react'; import { StartProxy, StopProxy } from '../wailsjs/go/main/App'; @@ -23,9 +15,7 @@ function App() { }, []); const [proxyState, setProxyState] = useState<'on' | 'off' | 'loading'>('off'); - const [activeTab, setActiveTab] = useState< - 'home' | 'filterLists' | 'settings' - >('home'); + const [activeTab, setActiveTab] = useState<'home' | 'filterLists' | 'settings'>('home'); const start = async () => { setProxyState('loading'); @@ -55,25 +45,13 @@ function App() { - - - diff --git a/frontend/src/FilterLists/CreateFilterList.tsx b/frontend/src/FilterLists/CreateFilterList.tsx index c5efb9a1..24b97885 100644 --- a/frontend/src/FilterLists/CreateFilterList.tsx +++ b/frontend/src/FilterLists/CreateFilterList.tsx @@ -14,22 +14,11 @@ export function CreateFilterList({ onAdd }: { onAdd: () => void }) { return (
- + - +
-
- {filterList.url} -
+
{filterList.url}
{showDelete && (