add edit + share modals
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user