Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0513fb9

Browse files
Fix additional formatting issues in ProxyContext.tsx
- Fix whitespace issues- Break long line into multiple lines- Add parentheses around arrow function parameterCo-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
1 parentb6fc891 commit0513fb9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎site/src/contexts/ProxyContext.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,16 @@ export const ProxyProvider: FC<PropsWithChildren> = ({ children }) => {
9999
queryFn:()=>API.getProxySettings(),
100100
retry:false,// Don't retry if user doesn't have proxy settings
101101
});
102-
102+
103103
// Mutation for updating proxy settings
104104
constupdateProxyMutation=useMutation({
105-
mutationFn:(proxyId:string)=>API.updateProxySettings({preferred_proxy:proxyId}),
105+
mutationFn:(proxyId:string)=>
106+
API.updateProxySettings({preferred_proxy:proxyId}),
106107
onSuccess:()=>{
107108
queryClient.invalidateQueries(["userProxySettings"]);
108109
},
109110
});
110-
111+
111112
constdeleteProxyMutation=useMutation({
112113
mutationFn:()=>API.deleteProxySettings(),
113114
onSuccess:()=>{
@@ -120,7 +121,7 @@ export const ProxyProvider: FC<PropsWithChildren> = ({ children }) => {
120121
if(userProxyQuery.data?.preferred_proxy){
121122
// Find the proxy object from the preferred_proxy ID
122123
constproxyId=userProxyQuery.data.preferred_proxy;
123-
returnproxiesResp?.find(p=>p.id===proxyId);
124+
returnproxiesResp?.find((p)=>p.id===proxyId);
124125
}
125126
// Fallback to localStorage for migration
126127
returnloadUserSelectedProxy();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp