Revize a62d7c92
Přidáno uživatelem Michal Schwob před více než 1 rok
src/components/item/ItemView.tsx | ||
---|---|---|
13 | 13 |
|
14 | 14 |
import { Dimensions } from "react-native"; |
15 | 15 |
import { DrawerNavigationProp } from "@react-navigation/drawer" |
16 |
import { RootDrawerParamList } from "../../pages/Navigation"
|
|
16 |
import { RootStackParamList } from "../../pages/Navigation"
|
|
17 | 17 |
|
18 | 18 |
interface ItemDetailProps { |
19 | 19 |
item: Item, |
20 | 20 |
itemLoading: boolean, |
21 | 21 |
notes: Note[], |
22 | 22 |
notesLoading: boolean, |
23 |
navigation: DrawerNavigationProp<RootDrawerParamList, "Item", undefined>
|
|
23 |
navigation: DrawerNavigationProp<RootStackParamList, "Item", undefined>
|
|
24 | 24 |
} |
25 | 25 |
|
26 | 26 |
const ItemDetail = (props: { item: Item, itemLoading: boolean }) => { |
... | ... | |
137 | 137 |
|
138 | 138 |
|
139 | 139 |
|
140 |
const ItemNotes = (props: { item: Item, notes: Note[], notesLoading: boolean, navigation: DrawerNavigationProp<RootDrawerParamList, "Item", undefined> }) => {
|
|
140 |
const ItemNotes = (props: { item: Item, notes: Note[], notesLoading: boolean, navigation: DrawerNavigationProp<RootStackParamList, "Item", undefined> }) => {
|
|
141 | 141 |
|
142 | 142 |
const [showRelatedComments, setShowRelatedComments] = useState(true); |
143 | 143 |
|
Také k dispozici: Unified diff
FIX: compilation error fixes
re #10847