From 17afc70767d5ccfb20d6ac61d2a1c9c148225985 Mon Sep 17 00:00:00 2001 From: Michael Brusegard <56915010+michaelbrusegard@users.noreply.github.com> Date: Sun, 22 Sep 2024 23:39:37 +0200 Subject: [PATCH] chore: import useId alone like other hooks --- src/components/news/CardGridSkeleton.tsx | 4 ++-- src/components/news/ItemGridSkeleton.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/news/CardGridSkeleton.tsx b/src/components/news/CardGridSkeleton.tsx index caa0390..5b9b7e4 100644 --- a/src/components/news/CardGridSkeleton.tsx +++ b/src/components/news/CardGridSkeleton.tsx @@ -1,6 +1,6 @@ import { Skeleton } from '@/components/ui/Skeleton'; import { cx } from '@/lib/utils'; -import * as React from 'react'; +import { useId } from 'react'; function CardGridSkeleton() { return ( @@ -13,7 +13,7 @@ function CardGridSkeleton() { index === 1 && 'col-span-1 row-span-1 md:col-span-2', index === 3 && 'xs:col-span-2 row-span-1 md:col-span-1', )} - key={React.useId()} + key={useId()} /> ))} diff --git a/src/components/news/ItemGridSkeleton.tsx b/src/components/news/ItemGridSkeleton.tsx index b3c8d90..52db860 100644 --- a/src/components/news/ItemGridSkeleton.tsx +++ b/src/components/news/ItemGridSkeleton.tsx @@ -1,11 +1,11 @@ import { ArticleItemSkeleton } from '@/components/news/ArticleItemSkeleton'; -import * as React from 'react'; +import { useId } from 'react'; function ItemGridSkeleton() { return (