Skip to content

Commit

Permalink
Merge pull request #19 from diggerhq/feat/no-managed-state-ui
Browse files Browse the repository at this point in the history
Remove managed state from UI
  • Loading branch information
ZIJ authored Aug 12, 2024
2 parents 74d1758 + 3f51268 commit f4cae9d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { InputTags } from "@/components/InputTags";
import { Button } from "@/components/ui/button";
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
import { Checkbox } from "@/components/ui/checkbox";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { updateProjectSettingsAction } from "@/data/user/projects";
Expand Down Expand Up @@ -97,27 +96,6 @@ export default function ProjectSettings({ project, repositoryName }: ProjectSett
</motion.div>
</div>

<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.15, delay: 0.3 }}
className="flex items-center space-x-2"
>
<Controller
name="managedState"
control={control}
render={({ field }) => (
<Checkbox
id="managedState"
checked={field.value}
onCheckedChange={field.onChange}
disabled
/>
)}
/>
<Label htmlFor="managedState">Managed State</Label>
</motion.div>

<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
Expand Down
15 changes: 0 additions & 15 deletions src/components/CreateProjectForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { Controller, useForm } from "react-hook-form";
import { z } from "zod";
import { InputTags } from "./InputTags";
import { T } from "./ui/Typography";
import { Checkbox } from "./ui/checkbox";

const MotionCard = motion(Card);

Expand Down Expand Up @@ -345,20 +344,6 @@ export default function CreateProjectForm({ organizationId, repositories, teams,
</CardHeader>
<CardContent>
<div className="space-y-4">
<div className="flex items-center space-x-2">
<Controller
name="managedState"
control={control}
render={({ field }) => (
<Checkbox
id="managedState"
checked={field.value}
onCheckedChange={field.onChange}
/>
)}
/>
<Label htmlFor="managedState">Managed State</Label>
</div>
<div>
<Label htmlFor="labels">Labels</Label>
<Controller
Expand Down

0 comments on commit f4cae9d

Please sign in to comment.