implemented service page design

This commit is contained in:
2022-05-29 11:20:23 +02:00
parent 4fd02288cd
commit 72123aee2f
13 changed files with 409 additions and 14 deletions

View File

@@ -0,0 +1,19 @@
import { faker } from "@faker-js/faker";
import { useQuery } from "react-query";
import { Service } from "../types";
let services = Array(11)
.fill(0)
.map(() => ({
name: faker.name.lastName(),
references: [faker.name.firstName()],
destination: [faker.internet.ipv4()],
}));
const fetchServices = async (): Promise<Service[]> => {
return services;
};
export default function useServices() {
return useQuery(["services"], fetchServices);
}