{selectedDate == "aN-aN-NaN" ? (
<View style={{ alignSelf: "center", marginVertical: 20 }}>
<WfTextRedItalic>Please Select a date first</WfTextRedItalic>
</View>
) : attendanceRecorded === false && recordedDate !== undefined ? (
<View style={{ alignSelf: "center", marginVertical: 20 }}>
<WfTextGreenNormal>
Attendance was last recorded on {recordedDate}
</WfTextGreenNormal>
</View>
) : attendanceRecorded === false && recordedDate === undefined ? (
<View style={{ alignSelf: "center", marginVertical: 20 }}>
<WfTextYellowItalic>Please Mark Attendance</WfTextYellowItalic>
</View>
) : (
<View style={{ alignSelf: "center", marginVertical: 20 }}>
<WfTextGreenNormal>
Attendance recorded for date {selectedDate}
</WfTextGreenNormal>
</View>
)}
As you can see in the above code the 'recordedDate' is what I want to set the value of ts as Im using type script and nodejs
The current items that are fetched or posted from my ClassAttendance Container are :
export declare class ClassAttendance {
id: string;
studentId: string;
classProfileId: string;
dateAttended: string;
studentAttended: "Yes" | "No" | "Partial";
teacherId?: string;
lessonId?: string;
startTime?: string;
endTime?: string;
connectionProblem?: boolean;
constructor(studentId: string, classProfileId: string, dateAttended: string, studentAttended?: "Yes" | "No" | "Partial", teacherId?: string, lessonId?: string, startTime?: string, endTime?: string, connectionProblem?: boolean);
If any more info is needed please let me know Im new to working with this code