Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1980ed09

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

Search page finished
re #10606

Zobrazit rozdíly:

src/components/listView/ListView.tsx
18 18

  
19 19
    return (
20 20
        <>
21
            {inventories.map((inventory) => (
22
                <ListViewInventoryGroup inventory={inventory.name} navigation={props.navigation}/>
21
            <Text fontSize={ 16 } fontWeight={ "bold" } color={"primary.500"}>Search results:</Text>
22
            { inventories && inventories.length > 0 ?
23
                (inventories.length > 1 ?
24
                    inventories.map((inventory) => (
25
                            <ListViewInventoryGroup
26
                                inventory={ inventory.label }
27
                                navigation={ props.navigation }
28
                            />
29
                        )
30
                    ) : (
31
                        <ListViewInventoryGroup
32
                            inventory={ inventories[0].label }
33
                            navigation={ props.navigation }
34
                            defaultOpen={ true }
35
                        />
36
                    )) : (
37
                    <Text alignSelf={ "center" }>No results found</Text>
23 38
                )
24
            )}
39
            }
25 40
        </>
26 41
    )
27 42
}

Také k dispozici: Unified diff