UI/queries: remove unused argument
This commit is contained in:
@@ -142,18 +142,12 @@ export const useClanListQuery = (clanURIs: string[]): ClanListQueryResult => {
|
|||||||
export type MachineFlashOptions = SuccessData<"get_machine_flash_options">;
|
export type MachineFlashOptions = SuccessData<"get_machine_flash_options">;
|
||||||
export type MachineFlashOptionsQuery = UseQueryResult<MachineFlashOptions>;
|
export type MachineFlashOptionsQuery = UseQueryResult<MachineFlashOptions>;
|
||||||
|
|
||||||
export const useMachineFlashOptions = (
|
export const useMachineFlashOptions = (): MachineFlashOptionsQuery => {
|
||||||
clanURI: string,
|
|
||||||
): MachineFlashOptionsQuery => {
|
|
||||||
const client = useApiClient();
|
const client = useApiClient();
|
||||||
return useQuery<MachineFlashOptions>(() => ({
|
return useQuery<MachineFlashOptions>(() => ({
|
||||||
queryKey: ["clans", encodeBase64(clanURI), "machine_flash_options"],
|
queryKey: ["clans", "machine_flash_options"],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const call = client.fetch("get_machine_flash_options", {
|
const call = client.fetch("get_machine_flash_options", {});
|
||||||
flake: {
|
|
||||||
identifier: clanURI,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
const result = await call.result;
|
const result = await call.result;
|
||||||
|
|
||||||
if (result.status === "error") {
|
if (result.status === "error") {
|
||||||
|
|||||||
Reference in New Issue
Block a user