Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b225ffee

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

re #10569: NotesView: interface implementation

Zobrazit rozdíly:

src/components/item/ItemView.tsx
4 4
import { Note } from "../../types/note"
5 5
import LoadingBox from "../loading/LoadingBox"
6 6
import NotesListView from "../notes/NotesListView"
7
import { IMAGE_URL } from "../../api/constants"
7 8

  
8 9
interface ItemDetailProps {
9 10
    item: Item,
......
54 55
                            {item.fullView && item.imageUrl && (
55 56
                                <Center background="primary.100" marginTop="5%">
56 57
                                    <Text>Resembling object</Text>
57
                                    <Image size={250} alt="image" source={{ uri: `http:147.228.173.159/static/images/${item.imageUrl}` }} />
58
                                    <Image size={250} alt="image" source={{ uri: IMAGE_URL + "/" + item.imageUrl }} />
58 59
                                </Center>)}
59 60
                            {item.fullView && (
60 61
                                <Card shadow="1" marginTop="5%" marginBottom="5%">
......
137 138
                notesLoading ?
138 139
                    <LoadingBox text="Notes loading" />
139 140
                    :
140
                    <NotesListView notes={props.notes} />
141
                    <NotesListView notes={props.notes} handleDelete={() => console.log("TODO handle delete")} handleEdit={() => console.log("TODO handle edit")} handleReply={() => console.log("TODO handle reply")}/>
141 142
            )}
142 143

  
143 144
            {/* item notes switch tab */}

Také k dispozici: Unified diff