Skip to content

Commit

Permalink
Update createLink function & add lucide icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Jan 8, 2024
1 parent c770b3e commit 28e998f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/links/create-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
FormMessage,
} from "@/ui/form";
import { Input, Textarea } from "@/ui/input";
import { LoaderIcon, PlusIcon, RocketIcon, ShuffleIcon } from "lucide-react";
import { LoaderIcon, RocketIcon, ShuffleIcon } from "lucide-react";

interface CreateLinkProps {
children: ReactNode;
Expand All @@ -52,7 +52,7 @@ export function CreateLink(props: CreateLinkProps) {
});

// Create link mutation:
const { mutate } = api.links.createLink.useMutation({
const { mutate } = api.linksRouter.createLink.useMutation({
onSuccess: () => {
setLoading(false);
setOpen(false);
Expand Down

0 comments on commit 28e998f

Please sign in to comment.