From f20da3a828041993c5ce807a73c6b9b78f63a1ed Mon Sep 17 00:00:00 2001 From: Alexander Kovrigin Date: Thu, 9 Nov 2023 17:51:29 +0100 Subject: [PATCH] [web] fix gitignore --- web/.gitignore | 2 ++ web/src/lib/utils.ts | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 web/src/lib/utils.ts diff --git a/web/.gitignore b/web/.gitignore index a547bf3..18b90f5 100644 --- a/web/.gitignore +++ b/web/.gitignore @@ -22,3 +22,5 @@ dist-ssr *.njsproj *.sln *.sw? + +!src/lib/ diff --git a/web/src/lib/utils.ts b/web/src/lib/utils.ts new file mode 100644 index 0000000..ec79801 --- /dev/null +++ b/web/src/lib/utils.ts @@ -0,0 +1,6 @@ +import { type ClassValue, clsx } from "clsx" +import { twMerge } from "tailwind-merge" + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)) +}