Skip to content

Commit

Permalink
rm unused general service file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennievon committed Sep 28, 2024
1 parent f60fefb commit 0f79ef3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
13 changes: 1 addition & 12 deletions packages/ui/api/general.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
import { httpRequest } from ".";
import { siteMetadata } from "../../../tools/bridge-frontend/src/lib/siteMetadata";
import { DocumentInterface, ResponseDataInterface } from "../lib/types/common";
import { apiRoutes } from "../routes";
import { pathToUrl } from "../routes/router";
import { DocumentInterface } from "../lib/types/common";

export const fetchTestnetStatus = async (): Promise<
ResponseDataInterface<boolean>
> => {
return await httpRequest<ResponseDataInterface<boolean>>({
method: "get",
url: pathToUrl(apiRoutes.getHealthStatus),
});
};
export const fetchDocument = async (id: string): Promise<DocumentInterface> => {
const response = await fetch(`/docs/${id}.json`);
const data = await response.json();
Expand Down
23 changes: 0 additions & 23 deletions packages/ui/services/useGeneralService.ts

This file was deleted.

0 comments on commit 0f79ef3

Please sign in to comment.