This commit is contained in:
Carl-Gerhard Lindesvärd
2023-10-20 22:19:36 +02:00
parent 4576453aef
commit 15e29edaa7
3 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ export function UserDropdown() {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<button>
<Avatar className="text-black">
<Avatar>
<AvatarFallback>CL</AvatarFallback>
</Avatar>
</button>

View File

@@ -15,10 +15,10 @@ export function MainLayout({ children, className }: MainLayoutProps) {
<meta name="description" content="Generated by create-t3-app" />
<link rel="icon" href="/favicon.ico" />
</Head>
<nav className="flex h-20 items-center justify-between border-b border-border bg-black px-8 text-white">
<nav className="flex h-20 items-center justify-between border-b border-border bg-gradient-to-r from-blue-900 to-purple-600 px-8 text-white">
<div className="flex flex-col [&_*]:leading-tight">
<span className="text-2xl font-extrabold">MIXAN</span>
<span className="text-xs text-muted">v0.0.1</span>
<span className="text-xs text-gray-500">v0.0.1</span>
</div>
<Navbar />

View File

@@ -4,7 +4,7 @@
*
* We also create a few inference helpers for input and output types.
*/
import { httpBatchLink, loggerLink } from "@trpc/client";
import { httpBatchLink, httpLink, loggerLink } from "@trpc/client";
import { createTRPCNext } from "@trpc/next";
import { type inferRouterInputs, type inferRouterOutputs } from "@trpc/server";
import superjson from "superjson";
@@ -48,7 +48,7 @@ export const api = createTRPCNext<AppRouter>({
process.env.NODE_ENV === "development" ||
(opts.direction === "down" && opts.result instanceof Error),
}),
httpBatchLink({
httpLink({
url: `${getBaseUrl()}/api/trpc`,
}),
],