mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-10 09:54:26 +01:00
build(app): define webln type on window object
This commit is contained in:
@@ -1,7 +1,19 @@
|
||||
import { Project, ProjectCard, ProjectCategory } from "../utils/interfaces";
|
||||
import { gql } from "@apollo/client";
|
||||
import data from "./mockData.json";
|
||||
|
||||
export async function getAllCategories(): Promise<ProjectCategory[]> {
|
||||
let ALL_CATEGORIES = gql`
|
||||
query GetCategories {
|
||||
allCategories {
|
||||
id
|
||||
title
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
console.log(ALL_CATEGORIES)
|
||||
|
||||
return data.categories;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user