correct linter errors

This commit is contained in:
Dean 2024-02-20 14:54:14 -08:00
parent 5b86a0f6d9
commit 0360fb413c
3 changed files with 17 additions and 5 deletions

View File

@ -13,14 +13,12 @@ const SessionCardFooter = ({ sessionName, lastPlayed }) => {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
sessionName: { sessionName: {
fontSize: 18, fontSize: 18,
fontWeight: "medium",
paddingTop: 5, paddingTop: 5,
marginLeft: 16, marginLeft: 16,
marginRight: 16, marginRight: 16,
}, },
sessionDatetime: { sessionDatetime: {
fontSize: 10, fontSize: 10,
fontWeight: "normal",
color: "#A3A3A3", color: "#A3A3A3",
marginLeft: 16, marginLeft: 16,
marginRight: 16, marginRight: 16,

View File

@ -16,13 +16,12 @@ const SessionCardStat = ({ aggregateStat, displayName, numberFormat }) => {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
statItem: { statItem: {
fontSize: 10, fontSize: 10,
alignItems: "center", textAlign: "center",
fontWeight: "light",
color: "#666", color: "#666",
}, },
statValue: { statValue: {
fontSize: 22, fontSize: 22,
fontWeight: "bold", fontWeight: "400",
}, },
}); });

View File

@ -1,8 +1,23 @@
import { StackNavigationProp } from "@react-navigation/stack";
import React from "react"; import React from "react";
import { StyleSheet, TouchableOpacity, View } from "react-native"; import { StyleSheet, TouchableOpacity, View } from "react-native";
import sampleSessionImage from "../../assets/sample_session.png"; import sampleSessionImage from "../../assets/sample_session.png";
import SessionCard from "../../component/session-card/session-card"; import SessionCard from "../../component/session-card/session-card";
// Define the types for your navigation stack
type SessionStackParamList = {
Session: undefined; // Add other screens as needed
};
type SessionFeedNavigationProp = StackNavigationProp<
SessionStackParamList,
"Session"
>;
// Define the props for SessionFeed component
interface SessionFeedProps {
navigation: SessionFeedNavigationProp;
}
const SessionFeed: React.FC = ({ navigation }) => { const SessionFeed: React.FC = ({ navigation }) => {
return ( return (
<View style={styles.container}> <View style={styles.container}>