Skip to content

Commit

Permalink
remove login form dead code and silence errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robinpdev committed Mar 14, 2024
1 parent 9fd08ce commit 314e41a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 70 deletions.
67 changes: 0 additions & 67 deletions frontend/app/[locale]/components/LoginForm.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions frontend/app/[locale]/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import initTranslations from "../../i18n";

const backend_url = process.env['NEXT_PUBLIC_BACKEND_URL'];

function HomePage({params: {locale}}) {
function HomePage({params: {locale}} : {params: {locale: any}}) {
const [courses, setCourses] = useState([]); // Initialize courses as an empty array
const [translations, setTranslations] = useState({t: (key) => key}); // Default 't' function
const [translations, setTranslations] = useState({t: (key: any) => key}); // Default 't' function

useEffect(() => {
const initialize = async () => {
Expand Down Expand Up @@ -50,7 +50,7 @@ function HomePage({params: {locale}}) {
{/* Render the list of course names */}
<Box>
{courses.map(course => (
<Typography key={course.course_id} variant="h5">{course.name}</Typography>
<Typography key={course['course_id']} variant="h5">{course['name']}</Typography>
))}
</Box>
</Box>
Expand Down

0 comments on commit 314e41a

Please sign in to comment.