This commit is contained in:
Loewy 2024-02-20 16:13:29 -08:00
parent 0c8cad6608
commit 5cb1069c1c

View File

@ -1,6 +1,5 @@
import React, { useState } from "react";
import { Button, Image, StyleSheet, Text, View } from "react-native";
import SlideModal from "./slide-modal";
import { Image, StyleSheet, Text, View } from "react-native";
export default function SessionDetails() {
// Modal State
@ -20,8 +19,7 @@ export default function SessionDetails() {
);
return (
<>
<SlideModal modalVisible={visible} setModalVisible={setVisible}>
<View>
<View style={styles.headerSection}>
<Text style={styles.header}>{sessionTitle}</Text>
<Text>{date}</Text>
@ -56,9 +54,7 @@ export default function SessionDetails() {
<View style={styles.horizontalDivider} />
<Text style={styles.gameType}>{gameType}</Text>
<Text style={styles.notes}>{notes}</Text>
</SlideModal>
<Button title="show modal" onPress={() => setVisible(true)} />
</>
</View>
);
}