Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d5dd3956

Přidáno uživatelem Michal Schwob před více než 1 rok

FIX: rendering plan view fixed, plan view page added to navigation
re #10873

Zobrazit rozdíly:

src/pages/PlanViewPage.tsx
4 4
import LoadingBox from "../components/loading/LoadingBox"
5 5
import { log } from "../logging/logger"
6 6
import { DrawerScreenProps } from "@react-navigation/drawer"
7
import { RootDrawerParamList } from "./Navigation"
8
import { Box, CloseIcon, Select, useToast, Button, Flex, Text, Center, VStack, ScrollView, View, HStack, Divider } from "native-base"
7
import { RootStackParamList } from "./Navigation"
8
import { Box, CloseIcon, Select, useToast, Button, Flex, Text, VStack, ScrollView, HStack, Divider } from "native-base"
9 9
import { ErrorToast } from "../components/toast/ErrorToast"
10 10
import { Floor, Place, Room } from "../types/plan"
11 11
import { getFloorList, getPlanFloorImage, getPlanInventories, getPlanItems } from "../stores/actions/planThunks"
12
import { login } from "../stores/actions/userThunks"
13
import { getPlanItemsRequest } from "../api/planservice"
14
import ItemPreview from "../components/listView/ItemPreview"
15
import { BASE_API_URL } from "../api/constants"
16 12
import ListView from "../components/listView/ListView"
17
import SearchForm from "../components/search/SearchForm"
18
import { loadItemsByInventory } from "../stores/actions/listViewThunks"
19 13
import CastlePlanView from "../components/plan/CastlePlanView"
20 14

  
21 15
import { Dimensions } from 'react-native';
22 16

  
23
const PlanViewPage = ({ route, navigation }: DrawerScreenProps<RootDrawerParamList, 'Plan'>) => {
17
const PlanViewPage = ({ route, navigation }: DrawerScreenProps<RootStackParamList, 'Plan'>) => {
24 18

  
25 19
  const dispatch = useDispatch<AppDispatch>()
26 20

  

Také k dispozici: Unified diff