@ -85,7 +85,7 @@ const ListItem: React.FC<IListItem> = ({
|
||||
<HStack space={1} alignItems='center' className='⁂-list-item__body'>
|
||||
{children}
|
||||
|
||||
<Icon src={require('@phosphor-icons/core/regular/caret-right.svg')} />
|
||||
<Icon src={require('@phosphor-icons/core/regular/caret-right.svg')} aria-hidden />
|
||||
</HStack>
|
||||
) : null}
|
||||
|
||||
|
||||
@ -92,7 +92,7 @@ const ScrollTopButton: React.FC<IScrollTopButton> = ({
|
||||
aria-hidden={!visible}
|
||||
>
|
||||
<button onClick={handleClick} tabIndex={visible ? 0 : -1}>
|
||||
<Icon src={require('@phosphor-icons/core/regular/arrow-line-up.svg')} />
|
||||
<Icon src={require('@phosphor-icons/core/regular/arrow-line-up.svg')} aria-hidden />
|
||||
|
||||
<p>{intl.formatMessage(message, { count })}</p>
|
||||
</button>
|
||||
|
||||
@ -33,7 +33,7 @@ const SearchInput = React.memo(() => {
|
||||
|
||||
const handleSubmit = () => {
|
||||
setValue('');
|
||||
const guessedType = /^(?:\/statuses\/|\/notice\/|\/objects\/|\/@[\w.-]+\/\d+)/.test(value)
|
||||
const guessedType = /(?:\/statuses\/|\/notice\/|\/objects\/|\/@[\w.-]+\/\d+)/.test(value)
|
||||
? 'statuses'
|
||||
: 'accounts';
|
||||
navigate({ to: '/search', search: { q: value, type: guessedType } });
|
||||
|
||||
Reference in New Issue
Block a user