Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aelishRollo committed Jun 1, 2024
1 parent caa6063 commit 4f65650
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions src/ChordProgression.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ type ChordProgressionProps = {


export const ChordProgression: React.FC<ChordProgressionProps> = ({ chordProgression }) => {
return (
<div className="chords">
<ol>
{chordProgression.map((chord, index) => <li key={index}>{chord}</li>)}
</ol>
</div>
);
return (
<div className="chords">
<ol>
{chordProgression.map((chord, index) => <li key={index}>{chord}</li>)}
</ol>
</div>
);
};
18 changes: 9 additions & 9 deletions src/reportWebVitals.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
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);
});
}
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;

0 comments on commit 4f65650

Please sign in to comment.