add edit + share modals

This commit is contained in:
Ishaan Dey
2024-04-30 22:48:36 -04:00
parent a0c2bb1bc3
commit 260de4f3b5
7 changed files with 323 additions and 22 deletions

View File

@ -14,7 +14,6 @@ import { set, z } from "zod"
import { zodResolver } from "@hookform/resolvers/zod"
import { useForm } from "react-hook-form"
import CustomButton from "@/components/ui/customButton"
import {
Form,
FormControl,
@ -36,6 +35,7 @@ import { useUser } from "@clerk/nextjs"
import { createSandbox } from "@/lib/actions"
import { useRouter } from "next/navigation"
import { Loader2 } from "lucide-react"
import { Button } from "../ui/button"
type TOptions = "react" | "node"
@ -160,7 +160,7 @@ export default function NewProjectModal({
</FormItem>
)}
/>
<CustomButton disabled={loading} type="submit" className="w-full">
<Button disabled={loading} type="submit" className="w-full">
{loading ? (
<>
<Loader2 className="animate-spin mr-2 h-4 w-4" /> Loading...
@ -168,7 +168,7 @@ export default function NewProjectModal({
) : (
"Submit"
)}
</CustomButton>
</Button>
</form>
</Form>
</DialogContent>