From 2ef3bdcd89731c1ed9cb7528181d19b2d9169bb5 Mon Sep 17 00:00:00 2001
From: Paweł Bernaciak <pawelbernaciak@zohomail.eu>
Date: Sat, 21 Oct 2023 11:55:50 +0200
Subject: Add basic frontend to test login

---
 frontend/src/reportWebVitals.tsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 frontend/src/reportWebVitals.tsx

(limited to 'frontend/src/reportWebVitals.tsx')

diff --git a/frontend/src/reportWebVitals.tsx b/frontend/src/reportWebVitals.tsx
new file mode 100644
index 0000000..f00fe6c
--- /dev/null
+++ b/frontend/src/reportWebVitals.tsx
@@ -0,0 +1,13 @@
+const reportWebVitals = (onPerfEntry: any) => {
+  if (onPerfEntry && onPerfEntry instanceof Function) {
+    import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
+      getCLS(onPerfEntry);
+      getFID(onPerfEntry);
+      getFCP(onPerfEntry);
+      getLCP(onPerfEntry);
+      getTTFB(onPerfEntry);
+    });
+  }
+};
+
+export default reportWebVitals;
-- 
cgit v1.2.3

