cleanup
and AI recommnedation fix
This commit is contained in:
1 parent
670e6675cc
commit
8353a24f6b
17 files changed
+134
-138
No files matched your search
@@ -1,9 +1,17 @@
|
||||
export const formatDate = (date: Date): string => {
|
||||
import { type ClassValue, clsx } from "clsx"
|
||||
import { twMerge } from "tailwind-merge"
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
}
|
||||
|
||||
export const formatDate = (date: Date | string): string => {
|
||||
const d = new Date(date)
|
||||
return new Intl.DateTimeFormat('en-US', {
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
month: 'long',
|
||||
day: 'numeric',
|
||||
}).format(date)
|
||||
}).format(d)
|
||||
}
|
||||
|
||||
export const formatCurrency = (
|
||||
|
||||
Reference in new issue
Block a user