trpc stuff

This commit is contained in:
2024-11-08 11:41:20 -07:00
parent 9503b208d2
commit 95d758210c
13 changed files with 213 additions and 73 deletions

View File

@@ -1,16 +1,11 @@
"use client";
import { useLocalCoursesSettingsQuery } from "@/hooks/localCourse/localCoursesHooks";
import { trpc } from "@/services/trpc/utils";
import { getCourseUrl } from "@/services/urlUtils";
import Link from "next/link";
import { useEffect } from "react";
export default function CourseList() {
const { data: allSettings } = useLocalCoursesSettingsQuery();
const {data} = trpc.sayHello.useQuery()
console.log(data);
return (
<div>
{allSettings.map((settings) => (