Skip to content

Commit

Permalink
Fix #238
Browse files Browse the repository at this point in the history
  • Loading branch information
AronBuzogany committed May 4, 2024
1 parent ff90ff4 commit cafbe47
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@
"RUNNING": "Is running",
"LATE": "Late",
"deadlinesOnDay": "Deadlines on: ",
"noDeadline": "No deadlines",
"noDeadline": "No deadlines on this day",
"no_submission_yet" : "No submission yet",
"loading": "Loading...",
"no_projects": "There are no projects here."
"no_projects": "There are no projects here, sign up for a course to see projects"
},
"projectsOverview": {
"past_deadline": "Past Projects",
Expand Down
4 changes: 2 additions & 2 deletions frontend/public/locales/nl/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
"RUNNING": "Aan het lopen",
"LATE": "Te laat",
"deadlinesOnDay": "Deadlines op: ",
"noDeadline": "Geen deadlines",
"noDeadline": "Geen deadlines op deze dag",
"no_submission_yet" : "Nog geen indiening",
"loading": "Laden...",
"no_projects": "Er zijn hier geen projecten."
"no_projects": "Er zijn hier geen projecten, meld je aan voor een vak om projecten te zien"

},
"projectForm": {
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/pages/home/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Grid,
Container,
Badge,
CardHeader,
} from "@mui/material";
import { DateCalendar } from "@mui/x-date-pickers/DateCalendar";
import { DayCalendarSkeleton, LocalizationProvider } from "@mui/x-date-pickers";
Expand Down Expand Up @@ -148,8 +149,8 @@ export default function HomePage() {
<Grid container spacing={2} wrap="nowrap">
<Grid item xs={6}>
<Card>
<CardHeader title={t("myProjects")} />
<CardContent>
<Typography variant="body1">{t("myProjects")}</Typography>
{futureProjects.length + noDeadlineProject.length > 0 ? (
<>
<ProjectDeadlineCard deadlines={futureProjects} />
Expand All @@ -164,8 +165,8 @@ export default function HomePage() {

<Grid item xs={6}>
<Card>
<CardHeader title={t("deadlines")} />
<CardContent>
<Typography variant="body1">{t("deadlines")}</Typography>
{pastDeadlines.length > 0 ? (
<ProjectDeadlineCard deadlines={pastDeadlines} />
) : (
Expand Down

0 comments on commit cafbe47

Please sign in to comment.