Ott 335 img alt name (#126)

* fix(ott-394): deleted search box target blank

* fix(ott-335): deleted search alt name

* fix(ott-335): minor bug fix
keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Armen 5 years ago committed by GitHub
parent 3169729207
commit 988a0142a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/features/ItemsList/index.tsx
  2. 2
      src/features/Modal/index.tsx
  3. 6
      src/features/Search/index.tsx

@ -17,6 +17,7 @@ import {
} from './styled'
type SearchItemsListProps = {
close: () => void,
list: Array<{
color: string,
fallbackImage: string,
@ -29,7 +30,7 @@ type SearchItemsListProps = {
}>,
}
export const ItemsList = ({ list }: SearchItemsListProps) => {
export const ItemsList = ({ close, list }: SearchItemsListProps) => {
const {
onError,
ref,
@ -48,12 +49,11 @@ export const ItemsList = ({ list }: SearchItemsListProps) => {
teamOrCountry,
}) => (
<Item key={id}>
<StyledLink to={profileUrl} target='_blank'>
<StyledLink to={profileUrl} onClick={close}>
<LogoWrapper>
<Logo
data-src={logo}
onError={onError(fallbackImage)}
alt={name}
/>
</LogoWrapper>
<ItemInfo>

@ -13,7 +13,7 @@ import {
type TModalProps = {
children: ReactNode,
close: ()=> void,
close: () => void,
isOpen: boolean,
}

@ -45,21 +45,21 @@ export const Search = () => {
{!isEmpty(tournaments) && (
<Fragment>
<Header title='tournament' image='tournament' />
<ItemsList list={tournaments} />
<ItemsList list={tournaments} close={close} />
</Fragment>
)}
{!isEmpty(teams) && (
<Fragment>
<Header title='team' image='team' />
<ItemsList list={teams} />
<ItemsList list={teams} close={close} />
</Fragment>
)}
{!isEmpty(players) && (
<Fragment>
<Header title='player' image='player' />
<ItemsList list={players} />
<ItemsList list={players} close={close} />
</Fragment>
)}
</Results>

Loading…
Cancel
Save