Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Aug 28, 2024
1 parent 93cd75e commit 3b27324
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import { event } from "nextjs-google-analytics";
import { CustomDropdownLinkItem } from "@src/components/shared/CustomDropdownLinkItem";
import { useLocalNotes } from "@src/context/LocalNoteProvider";
import { useWallet } from "@src/context/WalletProvider";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";
import { usePreviousRoute } from "@src/hooks/usePreviousRoute";
import { DeploymentDto } from "@src/types/deployment";
import { AnalyticsEvents } from "@src/utils/analytics";
import { TransactionMessageData } from "@src/utils/TransactionMessageData";
import { UrlService } from "@src/utils/urlUtils";
import { DeploymentDepositModal } from "./DeploymentDepositModal";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";

type Props = {
address: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { LinkTo } from "@src/components/shared/LinkTo";
import { useLocalNotes } from "@src/context/LocalNoteProvider";
import { useSettings } from "@src/context/SettingsProvider";
import { useWallet } from "@src/context/WalletProvider";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";
import { useDeploymentList } from "@src/queries/useDeploymentQuery";
import { useProviderList } from "@src/queries/useProvidersQuery";
import sdlStore from "@src/store/sdlStore";
Expand All @@ -32,7 +33,6 @@ import { UrlService } from "@src/utils/urlUtils";
import Layout from "../layout/Layout";
import { Title } from "../shared/Title";
import { DeploymentListRow } from "./DeploymentListRow";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";

export const DeploymentList: React.FunctionComponent = () => {
const { address, signAndBroadcastTx, isWalletLoaded } = useWallet();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { useRouter } from "next/navigation";
import { event } from "nextjs-google-analytics";

import { useWallet } from "@src/context/WalletProvider";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";
import { getShortText } from "@src/hooks/useShortText";
import { useDenomData } from "@src/hooks/useWalletBalance";
import { useAllLeases } from "@src/queries/useLeaseQuery";
Expand All @@ -37,7 +38,6 @@ import { PriceValue } from "../shared/PriceValue";
import { SpecDetailList } from "../shared/SpecDetailList";
import { DeploymentDepositModal } from "./DeploymentDepositModal";
import { LeaseChip } from "./LeaseChip";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";

type Props = {
deployment: NamedDeploymentDto;
Expand Down
6 changes: 1 addition & 5 deletions apps/deploy-web/src/components/deployments/LeaseRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ export const LeaseRow = React.forwardRef<AcceptRefType, Props>(({ lease, setActi
}
}
});
const {
data: providerStatus,
isLoading: isLoadingProviderStatus,
refetch: getProviderStatus
} = useProviderStatus(provider?.hostUri || "", {
const { isLoading: isLoadingProviderStatus, refetch: getProviderStatus } = useProviderStatus(provider?.hostUri || "", {
enabled: false,
retry: false
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { useSnackbar } from "notistack";

import { LocalCert } from "@src/context/CertificateProvider/CertificateProviderContext";
import { useWallet } from "@src/context/WalletProvider";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";
import { useBidList } from "@src/queries/useBidQuery";
import { useDeploymentDetail } from "@src/queries/useDeploymentQuery";
import { useProviderList } from "@src/queries/useProvidersQuery";
Expand All @@ -40,7 +41,6 @@ import { ManifestErrorSnackbar } from "../shared/ManifestErrorSnackbar";
import ViewPanel from "../shared/ViewPanel";
import { BidCountdownTimer } from "./BidCountdownTimer";
import { BidGroup } from "./BidGroup";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";

type Props = {
dseq: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { useCertificate } from "@src/context/CertificateProvider";
import { useChainParam } from "@src/context/ChainParamProvider";
import { useSdlBuilder } from "@src/context/SdlBuilderProvider/SdlBuilderProvider";
import { useWallet } from "@src/context/WalletProvider";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";
import { useManagedWalletDenom } from "@src/hooks/useManagedWalletDenom";
import { useWhen } from "@src/hooks/useWhen";
import { useDepositParams } from "@src/queries/useSettings";
Expand All @@ -26,6 +27,7 @@ import { defaultInitialDeposit, RouteStepKeys } from "@src/utils/constants";
import { deploymentData } from "@src/utils/deploymentData";
import { saveDeploymentManifestAndName } from "@src/utils/deploymentLocalDataUtils";
import { validateDeploymentData } from "@src/utils/deploymentUtils";
import { importSimpleSdl } from "@src/utils/sdl/sdlImport";
import { cn } from "@src/utils/styleUtils";
import { Timer } from "@src/utils/timer";
import { TransactionMessageData } from "@src/utils/TransactionMessageData";
Expand All @@ -39,8 +41,6 @@ import { LinkTo } from "../shared/LinkTo";
import { PrerequisiteList } from "../shared/PrerequisiteList";
import ViewPanel from "../shared/ViewPanel";
import { SdlBuilder, SdlBuilderRefType } from "./SdlBuilder";
import { importSimpleSdl } from "@src/utils/sdl/sdlImport";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";

type Props = {
onTemplateSelected: Dispatch<TemplateCreation | null>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";
import React, { useEffect, useState } from "react";
import { Button, buttonVariants } from "@akashnetwork/ui/components";
import { ArrowRight, Cpu, Linux,Page, Rocket, Wrench } from "iconoir-react";
import { ArrowRight, Cpu, Linux, Rocket, Wrench } from "iconoir-react";
import { NavArrowLeft } from "iconoir-react";
import { useAtom } from "jotai";
import Link from "next/link";
Expand Down
12 changes: 6 additions & 6 deletions apps/deploy-web/src/components/sdl/RentGpusForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ import { useAtom } from "jotai";
import { useRouter, useSearchParams } from "next/navigation";
import { event } from "nextjs-google-analytics";

import { envConfig } from "@src/config/env.config";
import { useCertificate } from "@src/context/CertificateProvider";
import { useChainParam } from "@src/context/ChainParamProvider";
import { useSettings } from "@src/context/SettingsProvider";
import { useWallet } from "@src/context/WalletProvider";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";
import { useManagedWalletDenom } from "@src/hooks/useManagedWalletDenom";
import { useWhen } from "@src/hooks/useWhen";
import { useGpuModels } from "@src/queries/useGpuQuery";
import { useDepositParams } from "@src/queries/useSettings";
import sdlStore from "@src/store/sdlStore";
import { ApiTemplate, ProfileGpuModelType, RentGpusFormValuesSchema, RentGpusFormValuesType, ServiceType } from "@src/types";
import { DepositParams } from "@src/types/deployment";
import { ProviderAttributeSchemaDetailValue } from "@src/types/providerAttributes";
import { AnalyticsEvents } from "@src/utils/analytics";
import { defaultInitialDeposit, RouteStepKeys } from "@src/utils/constants";
Expand All @@ -41,12 +47,6 @@ import { MemoryFormControl } from "./MemoryFormControl";
import { RegionSelect } from "./RegionSelect";
import { StorageFormControl } from "./StorageFormControl";
import { TokenFormControl } from "./TokenFormControl";
import { useManagedDeploymentConfirm } from "@src/hooks/useManagedDeploymentConfirm";
import { useWhen } from "@src/hooks/useWhen";
import { useManagedWalletDenom } from "@src/hooks/useManagedWalletDenom";
import { useDepositParams } from "@src/queries/useSettings";
import { envConfig } from "@src/config/env.config";
import { DepositParams } from "@src/types/deployment";

export const RentGpusForm: React.FunctionComponent = () => {
const [error, setError] = useState<string | null>(null);
Expand Down
1 change: 1 addition & 0 deletions apps/deploy-web/src/hooks/useManagedDeploymentConfirm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { usePopup } from "@akashnetwork/ui/context";

import { LeaseSpecDetail } from "@src/components/shared/LeaseSpecDetail";
import { useWallet } from "@src/context/WalletProvider";
import { ServiceType } from "@src/types";
Expand Down
2 changes: 1 addition & 1 deletion apps/deploy-web/src/utils/sdl/sdlImport.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import yaml from "js-yaml";
import { nanoid } from "nanoid";

import { ExposeType, ServiceType, ProfileGpuModelType } from "@src/types";
import { ExposeType, ProfileGpuModelType,ServiceType } from "@src/types";
import { CustomValidationError } from "../deploymentData";
import { capitalizeFirstLetter } from "../stringUtils";
import { defaultHttpOptions } from "./data";
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/providers/statusEndpointHandlers/grpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { ResourcesMetric, Status } from "@akashnetwork/akash-api/akash/provider/
import { ProviderRPCClient } from "@akashnetwork/akash-api/akash/provider/v1/grpc-js";
import { Empty } from "@akashnetwork/akash-api/google/protobuf";
import { Provider } from "@akashnetwork/database/dbSchemas/akash";
import minutesToMilliseconds from "date-fns/minutesToMilliseconds";
import memoize from "lodash/memoize";
import { promisify } from "util";

import { parseDecimalKubernetesString, parseSizeStr } from "@src/shared/utils/files";
import { FakeInsecureCredentials } from "./fake-insecure-credentials";
import { ProviderStatusInfo } from "./types";
import minutesToMilliseconds from "date-fns/minutesToMilliseconds";

export async function fetchProviderStatusFromGRPC(provider: Provider, timeout: number): Promise<ProviderStatusInfo> {
const data = await queryStatus(provider.hostUri, timeout);
Expand Down

0 comments on commit 3b27324

Please sign in to comment.