Skip to content

Commit ad1afdf

Browse files
committed
chore: renamed utils to lib, introduced new utils file
1 parent 89a7109 commit ad1afdf

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/components/Skills.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useMediaQuery } from '@/hooks/useMediaQuery';
22
import { BaselineIcon, GalleryVerticalEndIcon } from 'lucide-react';
33
import { Fragment, FunctionComponent, useState } from 'react';
4-
import { techIcons } from '@/utils/techIcons';
4+
import { techIcons } from '@/lib/techIcons';
55

66
interface Props extends React.SVGProps<SVGElement> {
77
size?: number | string;
@@ -74,7 +74,7 @@ function TechIconsDisplay({ heading, techNames }: TechIconsDisplayProps) {
7474
<span className="inline-flex items-center">
7575
{lang}
7676
{index < techNames.length - 1 && (
77-
<span className="mr-1">,</span>
77+
<span key={index} className="mr-1">,</span>
7878
)}
7979
</span>
8080
))}
File renamed without changes.

src/lib/utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { type ClassValue, clsx } from "clsx";
2+
import { twMerge } from "tailwind-merge";
3+
4+
export function cn(...inputs: ClassValue[]) {
5+
return twMerge(clsx(inputs));
6+
}

0 commit comments

Comments
 (0)