diff --git a/biome.json b/biome.json index c9d7601d..fb898822 100644 --- a/biome.json +++ b/biome.json @@ -65,7 +65,6 @@ "useNumberNamespace": "off", "useNamingConvention": "off", "useShorthandArrayType": "off", - "useExplicitLengthCheck": "off", "useSingleCaseStatement": "off", "useSelfClosingElements": "off", "noUnusedTemplateLiteral": "off" @@ -76,7 +75,6 @@ "useButtonType": "off", "useMediaCaption": "off", "noSvgWithoutTitle": "off", - "noLabelWithoutControl": "off", "useKeyWithClickEvents": "off", "noDistractingElements": "off" }, @@ -85,11 +83,9 @@ "noEnum": "off", "noSecrets": "off", "noProcessEnv": "off", - "noImgElement": "off", "useExplicitType": "off", "noNestedTernary": "off", "useSortedClasses": "off", - "noExportedImports": "off", "useImportRestrictions": "off", "useConsistentCurlyBraces": "off", "noStaticElementInteractions": "off", @@ -103,7 +99,6 @@ }, "correctness": { "all": true, - "noNodejsModules": "off", "noUnusedVariables": "off", "useImportExtensions": "off", "noUndeclaredVariables": "off", diff --git a/src/app/leaderboard/components/table.tsx b/src/app/leaderboard/components/table.tsx index ab2e1567..2b51988a 100644 --- a/src/app/leaderboard/components/table.tsx +++ b/src/app/leaderboard/components/table.tsx @@ -143,7 +143,7 @@ const LeaderboardTable = () => {
{leaderboard ?.slice(0, chunk * LEADERBOARD_CHUNK_SIZE) - .map((entry: LeaderboardItem) => ( + .map((entry: LeaderboardItem, index) => ( { const { diff --git a/src/app/swipe/components/useRecommendedProfilesCards.ts b/src/app/swipe/components/useRescommendedProfilesCards.ts similarity index 98% rename from src/app/swipe/components/useRecommendedProfilesCards.ts rename to src/app/swipe/components/useRescommendedProfilesCards.ts index 7e81ac5c..51ec4df4 100644 --- a/src/app/swipe/components/useRecommendedProfilesCards.ts +++ b/src/app/swipe/components/useRescommendedProfilesCards.ts @@ -56,7 +56,7 @@ export const useRecommendedProfilesCards = () => { ) const bindDragToCards = useDrag( - ({ args: [index], down, movement: [mx], direction: [xDir] }) => { + ({ args: [index], down, movement: [mx], direction: [xDir], velocity }) => { if (index !== gone.size) return const trigger = (mx > 50 && xDir === 1) || (mx < -50 && xDir === -1) // Card has to be moved more than 50px in either direction to trigger the swipe diff --git a/src/components/footer/components/pages.tsx b/src/components/footer/components/pages.tsx index fb840550..c15831ec 100644 --- a/src/components/footer/components/pages.tsx +++ b/src/components/footer/components/pages.tsx @@ -35,7 +35,7 @@ const Pages = () => { return (
- {footerPages.map((route) => ( + {footerPages.map((route, index) => (
) : ( - searchResult.map((result) => ( + searchResult.map((result, index) => (
{ @@ -259,7 +259,7 @@ export function Search({ {t('search no results')}
) : ( - searchResult.map((result) => ( + searchResult.map((result, index) => (
{