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({
sessionName: {
fontSize: 18,
fontWeight: "medium",
paddingTop: 5,
marginLeft: 16,
marginRight: 16,
},
sessionDatetime: {
fontSize: 10,
fontWeight: "normal",
color: "#A3A3A3",
marginLeft: 16,
marginRight: 16,

View File

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

View File

@ -1,8 +1,23 @@
import { StackNavigationProp } from "@react-navigation/stack";
import React from "react";
import { StyleSheet, TouchableOpacity, View } from "react-native";
import sampleSessionImage from "../../assets/sample_session.png";
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 }) => {
return (
<View style={styles.container}>