mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
Fixed hydration error
This commit is contained in:
+1
-8
@@ -3,11 +3,4 @@ import { twMerge } from "tailwind-merge"
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
}
|
||||
|
||||
export const getTimestamp = () => {
|
||||
if (typeof window === 'undefined') {
|
||||
return Date.now()
|
||||
}
|
||||
return window.INITIAL_TIMESTAMP || Date.now()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user