Skip to content

Commit

Permalink
Bugfix: Build now passes
Browse files Browse the repository at this point in the history
  • Loading branch information
tkhv committed Nov 24, 2023
1 parent 0abb5b9 commit ec20e0d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/(canvas)/courses/[courseName]/files/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use client";
import { File, FilesList } from "@/lib/types";

import {
Expand Down
2 changes: 1 addition & 1 deletion app/components/AddCourseDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function AddCourseDialog() {
<DialogHeader>
<DialogTitle>Create new course</DialogTitle>
<DialogDescription>
Add course details and save when you're done.
Add course details and save when you&apos;re done.
</DialogDescription>
</DialogHeader>
<Form {...form}>
Expand Down
8 changes: 7 additions & 1 deletion app/context/userContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ const UserContext = createContext<userData>({
setCourseList: (): string[] => [],
});

export const UserContextProvider = ({ children }) => {
import React from "react";

export const UserContextProvider = ({
children,
}: {
children: React.ReactNode;
}) => {
const [userId, setUserId] = useState("");
const [courseList, setCourseList] = useState<string[]>([]);

Expand Down

0 comments on commit ec20e0d

Please sign in to comment.