Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Aug 17, 2024
1 parent 1ed9f89 commit 314c8fc
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 91 deletions.
82 changes: 0 additions & 82 deletions apps/nextjs/src/app/Example.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { GithubUser } from "@ctrlplane/db/schema";
import { useEffect, useState } from "react";
import { redirect } from "next/navigation";
import { TbGitBranch, TbPlus } from "react-icons/tb";
import { useState } from "react";
import { TbPlus } from "react-icons/tb";

import { Avatar, AvatarFallback, AvatarImage } from "@ctrlplane/ui/avatar";
import { Button } from "@ctrlplane/ui/button";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { redirect, useRouter } from "next/navigation";
import { useRouter } from "next/navigation";
import { TbArrowLeft } from "react-icons/tb";

import { Button } from "@ctrlplane/ui/button";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { redirect, useRouter } from "next/navigation";
import { useRouter } from "next/navigation";
import { SiGithub } from "react-icons/si";

import { Button } from "@ctrlplane/ui/button";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ export const AddVariableValueDialog: React.FC<{
const form = useForm({ schema, defaultValues: { value: "" } });
const onSubmit = form.handleSubmit(async (values) => {
await create.mutateAsync({ ...values, variableId: variable.id });
await utils.variable.byDeploymentId.invalidate();
await utils.deployment.variable.byDeploymentId.invalidate();
setOpen(false);
});

return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>{children}</DialogTrigger>
Expand Down
2 changes: 0 additions & 2 deletions packages/api/src/router/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ const reposRouter = createTRPCRouter({
}),
});

const installationRouter = createTRPCRouter({});

export const githubRouter = createTRPCRouter({
user: userRouter,

Expand Down
1 change: 0 additions & 1 deletion packages/db/src/schema/github.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { InferSelectModel } from "drizzle-orm";
import { integer, pgTable, text, timestamp, uuid } from "drizzle-orm/pg-core";
import { createInsertSchema } from "drizzle-zod";
import { z } from "zod";

import { user } from "./auth";
import { workspace } from "./workspace";
Expand Down

0 comments on commit 314c8fc

Please sign in to comment.