add: showContainer to history mockup
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
|
import { DiscoveryProvider } from "@/contexts/DiscoveryContext";
|
||||||
import { SeasonProvider } from "@/contexts/SeasonContext";
|
import { SeasonProvider } from "@/contexts/SeasonContext";
|
||||||
import { ShowProvider } from "@/contexts/ShowContext";
|
import { ShowProvider } from "@/contexts/ShowContext";
|
||||||
import { StreamingServiceProvider } from "@/contexts/StreamingServiceContext";
|
import { StreamingServiceProvider } from "@/contexts/StreamingServiceContext";
|
||||||
|
|
||||||
import { DiscoveryProvider } from "@/contexts/DiscoveryContext";
|
|
||||||
import { Stack } from "expo-router";
|
import { Stack } from "expo-router";
|
||||||
import "react-native-reanimated";
|
import "react-native-reanimated";
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,16 @@
|
|||||||
import styles from "@/app/stackStyles/participantStyles";
|
import styles from "@/app/stackStyles/participantStyles";
|
||||||
|
import { useShowContext } from "@/contexts/ShowContext";
|
||||||
import Ionicons from "@expo/vector-icons/Ionicons";
|
import Ionicons from "@expo/vector-icons/Ionicons";
|
||||||
import { router, useLocalSearchParams } from "expo-router";
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
import React, { useMemo, useState } from "react";
|
import React, { useMemo, useState } from "react";
|
||||||
import { Image, Text, TouchableOpacity, View } from "react-native";
|
import { Text, TouchableOpacity, View } from "react-native";
|
||||||
|
|
||||||
import { useShowContext } from "@/contexts/ShowContext";
|
|
||||||
import {
|
import {
|
||||||
GestureHandlerRootView,
|
GestureHandlerRootView,
|
||||||
ScrollView,
|
ScrollView,
|
||||||
} from "react-native-gesture-handler";
|
} from "react-native-gesture-handler";
|
||||||
|
|
||||||
export default function ParticipantScreen() {
|
export default function ParticipantScreen() {
|
||||||
|
const [appearances] = useState<
|
||||||
const [appearances,] = useState<
|
|
||||||
{
|
{
|
||||||
showId: number;
|
showId: number;
|
||||||
seasons: number[];
|
seasons: number[];
|
||||||
@@ -54,9 +52,7 @@ export default function ParticipantScreen() {
|
|||||||
return (
|
return (
|
||||||
<GestureHandlerRootView style={styles.mainContainer}>
|
<GestureHandlerRootView style={styles.mainContainer}>
|
||||||
<ScrollView showsVerticalScrollIndicator={false}>
|
<ScrollView showsVerticalScrollIndicator={false}>
|
||||||
<Text style={styles.participantName}>
|
<Text style={styles.participantName}>{name}</Text>
|
||||||
{name ? (Array.isArray(name) ? name[0] : name) : "Teilnehmer"}
|
|
||||||
</Text>
|
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={styles.closeIcon}
|
style={styles.closeIcon}
|
||||||
onPress={() => router.back()}
|
onPress={() => router.back()}
|
||||||
@@ -67,7 +63,9 @@ export default function ParticipantScreen() {
|
|||||||
<View style={styles.performedShowsSection}>
|
<View style={styles.performedShowsSection}>
|
||||||
<Text style={styles.performedShowsTitle}>Auftritte:</Text>
|
<Text style={styles.performedShowsTitle}>Auftritte:</Text>
|
||||||
|
|
||||||
<ScrollView
|
<View style={styles.showContainer}></View>
|
||||||
|
|
||||||
|
{/* <ScrollView
|
||||||
horizontal
|
horizontal
|
||||||
showsHorizontalScrollIndicator={false}
|
showsHorizontalScrollIndicator={false}
|
||||||
style={{
|
style={{
|
||||||
@@ -100,7 +98,7 @@ export default function ParticipantScreen() {
|
|||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</ScrollView>
|
</ScrollView> */}
|
||||||
</View>
|
</View>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</GestureHandlerRootView>
|
</GestureHandlerRootView>
|
||||||
|
|||||||
@@ -49,24 +49,24 @@ const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
performedShowsSection: {
|
performedShowsSection: {
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: 500,
|
height: Dimensions.get("window").height,
|
||||||
paddingLeft: 15,
|
|
||||||
paddingBottom: 20,
|
|
||||||
backgroundColor: "hsl(221, 39%, 0%)",
|
backgroundColor: "hsl(221, 39%, 0%)",
|
||||||
marginTop: 15,
|
marginTop: 20,
|
||||||
},
|
},
|
||||||
performedShowsTitle: {
|
performedShowsTitle: {
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: "600",
|
fontWeight: "600",
|
||||||
color: "hsl(0, 0%, 80%)",
|
color: "hsl(0, 0%, 80%)",
|
||||||
marginTop: 15,
|
marginTop: 15,
|
||||||
|
marginLeft: 15,
|
||||||
},
|
},
|
||||||
showContainer: {
|
showContainer: {
|
||||||
width: 120,
|
width: "85%",
|
||||||
height: 180,
|
height: 180,
|
||||||
backgroundColor: "hsl(336, 79%, 63%)",
|
backgroundColor: "hsl(336, 79%, 63%)",
|
||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
marginRight: 15,
|
alignSelf: "center",
|
||||||
|
marginTop: 15,
|
||||||
},
|
},
|
||||||
showImage: {
|
showImage: {
|
||||||
width: "100%",
|
width: "100%",
|
||||||
|
|||||||
Reference in New Issue
Block a user