640155aa4a
* Basic setup for react native web * Comment unsupported react-native code * Add interface for keychain methods * Fix storeNetworkData method * Use mui dialog component * Modify key store file name * Fix add network and edit network screens * Fix sign message screen * Use light theme --------- Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
16 lines
425 B
TypeScript
16 lines
425 B
TypeScript
import { ReportHandler } from 'web-vitals';
|
|
|
|
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
|
|
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;
|