Skip to content

Commit

Permalink
embed homescreen
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattchris committed Dec 4, 2024
1 parent 0aff36c commit 0b55bbc
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions frontend/screens/MapScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { API_DOMAIN } from "@env";
import { Venue } from "@/types/Venue";
import { useAuth } from "@/context/AuthContext";
import React from "react";
import HomeScreen from "./HomeScreen";

const MapScreen: React.FC = () => {
const [allVenues, setAllVenues] = useState<Venue[]>([]);
Expand Down Expand Up @@ -203,19 +204,20 @@ const MapScreen: React.FC = () => {
) : (
// TODO: Replace with Ben's explore page
// Venue List View
<View style={styles.modalContent}>
<Text style={styles.listTitle}>All Venues</Text>
{allVenues.map((venue) => (
<TouchableOpacity
key={venue.venue_id}
onPress={() => handleMarkerPress(venue)}
style={styles.venueItem}
>
<Text style={styles.venueName}>{venue.name}</Text>
<Text style={styles.venueAddress}>{venue.address}</Text>
</TouchableOpacity>
))}
</View>
// <View style={styles.modalContent}>
// <Text style={styles.listTitle}>All Venues</Text>
// {allVenues.map((venue) => (
// <TouchableOpacity
// key={venue.venue_id}
// onPress={() => handleMarkerPress(venue)}
// style={styles.venueItem}
// >
// <Text style={styles.venueName}>{venue.name}</Text>
// <Text style={styles.venueAddress}>{venue.address}</Text>
// </TouchableOpacity>
// ))}
// </View>
<HomeScreen/>
)}
</Modalize>
</View>
Expand Down

0 comments on commit 0b55bbc

Please sign in to comment.