chore: migrate to biomejs

This commit is contained in:
BennyKok committed 2024-01-20 20:09:28 +08:00
1 parent c98a16a2dd
commit e400966117
20 files changed
+63 -150

No files matched your search

+6 -4
View File
@@ -1,8 +1,10 @@
export function remToPx(remValue: number) {
let rootFontSize =
typeof window === 'undefined'
? 16
: parseFloat(window.getComputedStyle(document.documentElement).fontSize)
const rootFontSize =
typeof window === "undefined"
? 16
: parseFloat(
window.getComputedStyle(document.documentElement).fontSize,
);
return remValue * rootFontSize
}