summaryrefslogtreecommitdiff
path: root/frontend/src/reportWebVitals.tsx
diff options
context:
space:
mode:
authorPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-10-21 11:55:50 +0200
committerPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-10-21 11:55:50 +0200
commit2ef3bdcd89731c1ed9cb7528181d19b2d9169bb5 (patch)
tree9aa6d907425d3609ab9ae4affcf5b86ef794a6da /frontend/src/reportWebVitals.tsx
parent12fef7cbaf2073f9cc349ed765ea140be0259d8e (diff)
Add basic frontend to test login
Diffstat (limited to 'frontend/src/reportWebVitals.tsx')
-rw-r--r--frontend/src/reportWebVitals.tsx13
1 files changed, 13 insertions, 0 deletions
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;