mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-02-06 09:55:47 +00:00
linting and snapshot
This commit is contained in:
parent
a5f5ba738a
commit
ce0d6bf521
@ -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)
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user