linting and snapshot

This commit is contained in:
Anton Tranelis 2025-12-16 21:21:59 +01:00
parent a5f5ba738a
commit ce0d6bf521
3 changed files with 5 additions and 7 deletions

View File

@ -112,14 +112,14 @@ export const Autocomplete = ({
{filteredSuggestions.map((suggestion, index) => (
<li
key={suggestion.id}
role="option"
role='option'
tabIndex={0}
aria-selected={index === highlightedSuggestion}
onClick={() => handleSuggestionClick(suggestion)}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
handleSuggestionClick(suggestion);
e.preventDefault()
handleSuggestionClick(suggestion)
}
}}
>

View File

@ -36,7 +36,7 @@ export const AttestationsView = ({ item, heading = 'Trust', hideWhenEmpty = true
<h2 className='tw:text-lg tw:font-bold tw:mb-2'>{heading}</h2>
<table className='sm:tw:table-sm md:tw:table-md tw:w-full'>
<tbody>
{userAttestations.map((a, i) => (
{userAttestations.map((a) => (
<tr key={a.id}>
<td>
<div

View File

@ -1,9 +1,7 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`<InviteLinkView /> > when item has secrets > matches the snapshot 1`] = `
<div
class="tw:my-10 tw:mt-2 tw:px-6"
>
<div>
<h2
class="tw:text-lg tw:font-semibold"
>