Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 04928342

Přidáno uživatelem Schwobik před téměř 2 roky(ů)

mergování a úprava kompatibility. proklik na detail itemu
re #10489

Zobrazit rozdíly:

src/components/listView/ListView.tsx
6 6
import { ItemPreviewType } from "../../types/listViewTypes"
7 7
import { log } from "../../logging/logger"
8 8

  
9
type ListViewProps = {
10
    navigation: any
11
}
9 12

  
10
const ListView = () => {
13
const ListView = (props: ListViewProps) => {
11 14
    const items = useSelector((state: RootState) => state.listView.data)
12 15

  
13 16
    /**
......
52 55
        return image && image.images ? image.images[0].file.split('.')[0] + '.png' : undefined
53 56
    }
54 57

  
55
    useEffect(() => {
56
        log.debug("ListView", "Items:", items)
57
    }, [items])
58

  
59 58
    return (
60 59
        <>
61 60
            { items.map((item) => (
......
65 64
                    title={ item.text }
66 65
                    name={ parseArtists(item) }
67 66
                    image={ parseImage(item) }
67
                    itemId={ item.xml_id }
68
                    navigation={ props.navigation }
68 69
                />
69 70
            )) }
70 71
        </>

Také k dispozici: Unified diff