Revize f4af30c8
Přidáno uživatelem Fantič před více než 1 rok
src/pages/PlanViewPage.tsx | ||
---|---|---|
13 | 13 |
import CastlePlanView from "../components/plan/CastlePlanView" |
14 | 14 |
|
15 | 15 |
import { Dimensions } from 'react-native'; |
16 |
import { login } from "../stores/actions/userThunks" |
|
16 | 17 |
|
17 | 18 |
const PlanViewPage = ({ route, navigation }: DrawerScreenProps<RootStackParamList, 'Plan'>) => { |
18 | 19 |
|
... | ... | |
277 | 278 |
} |
278 | 279 |
|
279 | 280 |
}} |
280 |
backgroundColor={"#654B07"}
|
|
281 |
backgroundColor={"primary"}
|
|
281 | 282 |
variant="subtle" |
282 | 283 |
borderRadius={10} |
283 | 284 |
size={"sm"} |
... | ... | |
350 | 351 |
onPress={() => { setCastlePlanShown(true) }} |
351 | 352 |
> |
352 | 353 |
<VStack alignItems={"center"}> |
353 |
<Text bold={castlePlanShown} mb={castlePlanShown ? undefined : 2}> |
|
354 |
<Text color="primary" bold={castlePlanShown} mb={castlePlanShown ? undefined : 2}>
|
|
354 | 355 |
Castle |
355 | 356 |
</Text> |
356 |
{castlePlanShown && <Divider borderWidth={1} width={60} mt={2} />} |
|
357 |
{castlePlanShown && <Divider color="primary" borderWidth={1} width={60} mt={2} />}
|
|
357 | 358 |
</VStack> |
358 | 359 |
</Button> |
359 | 360 |
<Button |
... | ... | |
362 | 363 |
onPress={() => { setCastlePlanShown(false) }} |
363 | 364 |
> |
364 | 365 |
<VStack alignItems={"center"}> |
365 |
<Text bold={!castlePlanShown} mb={!castlePlanShown ? undefined : 2}> |
|
366 |
<Text color="primary" bold={!castlePlanShown} mb={!castlePlanShown ? undefined : 2}>
|
|
366 | 367 |
Results |
367 | 368 |
</Text> |
368 |
{!castlePlanShown && <Divider borderWidth={1} width={60} mt={2} />} |
|
369 |
{!castlePlanShown && <Divider color="primary" borderWidth={1} width={60} mt={2} />}
|
|
369 | 370 |
</VStack> |
370 | 371 |
</Button> |
371 | 372 |
</HStack> |
Také k dispozici: Unified diff
re #10895: ItemView redesign, refactor