[Frontend] Marc/frontend granular city/state geo proxy (#4156)
This commit is contained in:
@@ -3,6 +3,7 @@ import { useState } from "react";
|
||||
import { useNavigate, useSearchParams } from "react-router-dom";
|
||||
|
||||
import { ProxyLocation } from "@/api/types";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
|
||||
@@ -5,6 +5,7 @@ import { useMutation } from "@tanstack/react-query";
|
||||
import { getClient } from "@/api/AxiosClient";
|
||||
import { useCredentialGetter } from "@/hooks/useCredentialGetter";
|
||||
import { BrowserSession } from "@/routes/workflows/types/browserSessionTypes";
|
||||
import { ProxyLocation } from "@/api/types";
|
||||
|
||||
function useCreateBrowserSessionMutation() {
|
||||
const queryClient = useQueryClient();
|
||||
@@ -16,7 +17,7 @@ function useCreateBrowserSessionMutation() {
|
||||
proxyLocation = null,
|
||||
timeout = null,
|
||||
}: {
|
||||
proxyLocation: string | null;
|
||||
proxyLocation: ProxyLocation | null;
|
||||
timeout: number | null;
|
||||
}) => {
|
||||
const client = await getClient(credentialGetter, "sans-api-v1");
|
||||
|
||||
Reference in New Issue
Block a user