Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen-g09 committed Jun 19, 2024
1 parent 4d35a30 commit 7bdf9e6
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 79 deletions.
149 changes: 72 additions & 77 deletions app/(tabs)/home.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { View, Text, TouchableOpacity, ScrollView } from 'react-native'
import React from 'react'
import { Link } from 'expo-router'
import { StyleSheet } from 'react-native'
import { Link } from "expo-router";
import React from "react";
import { Text, TouchableOpacity, ScrollView, StyleSheet } from "react-native";

//TODO: this is homepage of the app
//TODO: add a notification icon
Expand All @@ -10,86 +9,82 @@ import { StyleSheet } from 'react-native'
//TODO: in notification component it will push notifications of payment dues, gate updates, guest notification, help, etc

const Home = () => {
return (
return (
<ScrollView contentContainerStyle={styles.container}>
<Link href="/visitor" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>Visitors Update</Text>
</TouchableOpacity>
</Link>

<ScrollView contentContainerStyle={styles.container}>
<Link href="/visitor" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>Visitors Update</Text>
</TouchableOpacity>
</Link>
<Link href="/event" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>Events</Text>
</TouchableOpacity>
</Link>

<Link href="/event" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>Events</Text>
</TouchableOpacity>
</Link>
<Link href="/news" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>News</Text>
</TouchableOpacity>
</Link>

<Link href="/news" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>News</Text>
</TouchableOpacity>
</Link>
<Link href="/payment" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>Payment Dues</Text>
</TouchableOpacity>
</Link>

<Link href="/payment" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>Payment Dues</Text>
</TouchableOpacity>
</Link>

<Link href="/news" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>News</Text>
</TouchableOpacity>
</Link>

<Link href="/visitor" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>Visitors</Text>
</TouchableOpacity>
</Link>
</ScrollView>

)
}
<Link href="/news" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>News</Text>
</TouchableOpacity>
</Link>

<Link href="/visitor" asChild>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>Visitors</Text>
</TouchableOpacity>
</Link>
</ScrollView>
);
};

const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
},
button: {
flexDirection: "row",
alignItems: "center",
paddingHorizontal: 20,
paddingVertical: 10,
marginVertical: 10,
backgroundColor: "powderblue",
borderRadius: 5,
width: "80%",
height: "10%",
shadowColor: "#000", // Shadow color
shadowOffset: {
width: 0,
height: 2, // Shadow offset
},
shadowOpacity: 0.25, // Shadow opacity
shadowRadius: 3.84, // Shadow radius
elevation: 5,
},
image: {
marginRight: 10,
},
buttonText: {
color: "#000",
fontSize: 18,
marginLeft: 10,
fontWeight: "bold",
container: {
flex: 1,
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
},
button: {
flexDirection: "row",
alignItems: "center",
paddingHorizontal: 20,
paddingVertical: 10,
marginVertical: 10,
backgroundColor: "powderblue",
borderRadius: 5,
width: "80%",
height: "10%",
shadowColor: "#000", // Shadow color
shadowOffset: {
width: 0,
height: 2, // Shadow offset
},
shadowOpacity: 0.25, // Shadow opacity
shadowRadius: 3.84, // Shadow radius
elevation: 5,
},
image: {
marginRight: 10,
},
buttonText: {
color: "#000",
fontSize: 18,
marginLeft: 10,
fontWeight: "bold",
},
});


export default Home
export default Home;
2 changes: 1 addition & 1 deletion app/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Redirect } from "expo-router";
import React, { useState } from "react";
import React from "react";

import { IS_ONBOARDED_KEY } from "@/utils/costants/chat";
import { storage } from "@/utils/mmkvHelpers";
Expand Down
2 changes: 1 addition & 1 deletion expo-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/// <reference types="expo/types" />

// NOTE: This file should not be edited and should be in your git ignore
// NOTE: This file should not be edited and should be in your git ignore

0 comments on commit 7bdf9e6

Please sign in to comment.