Skip to content

Commit

Permalink
fix: upgrade t3-stack partialy
Browse files Browse the repository at this point in the history
  • Loading branch information
Security2431 committed Apr 11, 2024
1 parent bb850ac commit ff4cfeb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 96 deletions.
9 changes: 5 additions & 4 deletions packages/api/src/router/auth.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc";
import type { TRPCRouterRecord } from "@trpc/server";

export const authRouter = createTRPCRouter({
import { protectedProcedure, publicProcedure } from "../trpc";

export const authRouter = {
getSession: publicProcedure.query(({ ctx }) => {
return ctx.session;
}),
getSecretMessage: protectedProcedure.query(() => {
// testing type validation of overridden next-auth Session in @acme/auth package
return "you can see this secret message!";
}),
});
} satisfies TRPCRouterRecord;
2 changes: 0 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@
"@tanstack/react-table": "^8.15.3",
"class-variance-authority": "^0.7.0",
"cmdk": "^1.0.0",
"install": "^0.13.0",
"lucide-react": "^0.367.0",
"next-themes": "^0.2.1",
"npm": "^10.5.2",
"react-hook-form": "^7.50.1",
"sonner": "^1.4.1",
"tailwind-merge": "^2.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import type { CxOptions } from "class-variance-authority";
import { cx } from "class-variance-authority";
import { twMerge } from "tailwind-merge";

const cn = (...inputs: CxOptions) => twMerge(cx(inputs));
const cn = (...inputs: Parameters<typeof cx>) => twMerge(cx(inputs));

export { cn };
89 changes: 0 additions & 89 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit ff4cfeb

@vercel
Copy link

@vercel vercel bot commented on ff4cfeb Apr 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.