Commit a9a9d1bf authored by ss16118's avatar ss16118
Browse files

Removed unnecessary output messages and commented out "Exams" section.

parent 66781963
Pipeline #172815 failed with stages
......@@ -141,7 +141,7 @@ class App extends React.Component<{}, AppState> {
{ name: "Dashboard", path: "/dashboard", icon: faHome },
{ name: "Modules", path: "/modules", icon: faChalkboardTeacher },
{ name: "Timeline", path: "/timeline", icon: faCalendarWeek },
{ name: "Exams", path: "/exams", icon: faBookOpen },
// { name: "Exams", path: "/exams", icon: faBookOpen },
]
return (
......
This diff is collapsed.
......@@ -48,7 +48,6 @@ const Dashboard: React.FC = () => {
return insight
}))
.then(insights => {
console.log(insights)
setInsightsSorted(insights)
})
.finally(() => {
......
......@@ -40,7 +40,6 @@ const SignIn: React.FC<Props> = ({ location }) => {
api: api.EMARKING_ME_INFO(),
method: methods.GET
})
console.log(response)
onChangeCurrentUserInfo(response)
setRedirect(true)
......
......@@ -153,10 +153,6 @@ const StandardView: React.FC<StandardViewProps> = ({
setModulesTracks(modulesTracks)
}, [timelineEvents])
useEffect(() => {
console.log(modulesList.length)
}, [modulesList])
return (
<div
id="wrapper"
......
......@@ -58,7 +58,6 @@ const ModuleFeedback: React.FC<Props> = ({ courseCode }) => {
}
})
.then(feedbacks => {
console.log(feedbacks)
setFeedbacks(feedbacks.filter(x => x.course === courseCode).sort((a, b) => a.id - b.id))
setLoading(Stage.OK)
})
......
......@@ -184,8 +184,8 @@ const StaffView: React.FC<StaffViewProps> = ({
}}
year={year}
course={course}
start_date={moment.now()}
due_date={moment.now()}/>
startDate={moment.now()}
dueDate={moment.now()}/>
<AlertModal
show={modal === "alert"}
......
......@@ -112,7 +112,6 @@ const DistributionSection: React.FC<Props> = ({
}).then(distributions => {
const distribution = distributions[0]
distribution && setDistribution(distribution)
console.log(distributions)
setLoading(distribution ? Stage.OK : Stage.NO_DISTRIBUTION)
})
.catch(error => setLoading(Stage.ERROR))
......
......@@ -79,7 +79,6 @@ async function login(username: string, password: string, loginURL: string, login
})
if (response.ok) {
const data = await response.json()
console.log(loginService, data)
storeDataInStorage(loginService, {
...data,
user_info: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment