correct linter errors
This commit is contained in:
parent
5b86a0f6d9
commit
0360fb413c
@ -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,
|
||||||
|
@ -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",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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}>
|
||||||
|
Loading…
Reference in New Issue
Block a user