mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 20:08:07 +08:00
Improved homepage
This commit is contained in:
parent
d9adc45b27
commit
875a7154fa
2 changed files with 7 additions and 3 deletions
|
@ -48,6 +48,7 @@ export default function Home() {
|
|||
function CustomMap() {
|
||||
if (dist !== null && location !== null) {
|
||||
if (dist <= 1) {
|
||||
// Just switch this condition for map debugging
|
||||
return <MapView style={styles.map} initialRegion={ustpCoords} />;
|
||||
} else {
|
||||
return (
|
||||
|
@ -77,7 +78,6 @@ export default function Home() {
|
|||
return (
|
||||
<View style={styles.background}>
|
||||
<AnimatedContainer>
|
||||
<Text style={styles.text_white_large}>Template Homepage</Text>
|
||||
<CustomMap />
|
||||
</AnimatedContainer>
|
||||
</View>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue