Updated components build.
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
import { useConfig, useLinkQuery } from '@/components/hooks';
|
||||
import { useMessages } from '@/components/hooks';
|
||||
import { Refresh } from '@/components/icons';
|
||||
import { getRandomChars } from '@/lib/crypto';
|
||||
import { getRandomChars } from '@/lib/generate';
|
||||
import { useUpdateQuery } from '@/components/hooks/queries/useUpdateQuery';
|
||||
import { LINKS_URL } from '@/lib/constants';
|
||||
import { isValidUrl } from '@/lib/url';
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
'use client';
|
||||
import { createContext, ReactNode } from 'react';
|
||||
import { useLinkQuery } from '@/components/hooks';
|
||||
import { Loading } from '@umami/react-zen';
|
||||
import { Link } from '@/generated/prisma/client';
|
||||
import { useLinkQuery } from '@/components/hooks/queries/useLinkQuery';
|
||||
|
||||
export const LinkContext = createContext(null);
|
||||
export const LinkContext = createContext<Link>(null);
|
||||
|
||||
export function LinkProvider({ linkId, children }: { linkId?: string; children: ReactNode }) {
|
||||
const { data: link, isLoading, isFetching } = useLinkQuery(linkId);
|
||||
|
||||
Reference in New Issue
Block a user