From ce0d6bf52112005f296d15d23cd2fbc2a0247186 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Tue, 16 Dec 2025 21:21:59 +0100 Subject: [PATCH] linting and snapshot --- lib/src/Components/Input/Autocomplete.tsx | 6 +++--- .../Components/Profile/Subcomponents/AttestationsView.tsx | 2 +- .../__snapshots__/InviteLinkView.spec.tsx.snap | 4 +--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/src/Components/Input/Autocomplete.tsx b/lib/src/Components/Input/Autocomplete.tsx index bef220ba..a30dc3fd 100644 --- a/lib/src/Components/Input/Autocomplete.tsx +++ b/lib/src/Components/Input/Autocomplete.tsx @@ -112,14 +112,14 @@ export const Autocomplete = ({ {filteredSuggestions.map((suggestion, index) => (
  • handleSuggestionClick(suggestion)} onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { - e.preventDefault(); - handleSuggestionClick(suggestion); + e.preventDefault() + handleSuggestionClick(suggestion) } }} > diff --git a/lib/src/Components/Profile/Subcomponents/AttestationsView.tsx b/lib/src/Components/Profile/Subcomponents/AttestationsView.tsx index 53214b15..4de9b803 100644 --- a/lib/src/Components/Profile/Subcomponents/AttestationsView.tsx +++ b/lib/src/Components/Profile/Subcomponents/AttestationsView.tsx @@ -36,7 +36,7 @@ export const AttestationsView = ({ item, heading = 'Trust', hideWhenEmpty = true

    {heading}

    - {userAttestations.map((a, i) => ( + {userAttestations.map((a) => (
    > when item has secrets > matches the snapshot 1`] = ` -
    +