mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
loading states
This commit is contained in:
@@ -7,8 +7,8 @@ export default function CourseList() {
|
||||
return (
|
||||
<div>
|
||||
{courses.map((c) => (
|
||||
<Link href={`/course/${c.settings.name}`} key={c.settings.name}>
|
||||
{c.settings.name}{" "}
|
||||
<Link href={`/course/${c}`} key={c}>
|
||||
{c}{" "}
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
|
||||
10
nextjs/src/app/course/[courseName]/loading.tsx
Normal file
10
nextjs/src/app/course/[courseName]/loading.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Spinner } from "@/components/Spinner";
|
||||
import React from "react";
|
||||
|
||||
export default function Loading() {
|
||||
return (
|
||||
<div>
|
||||
<Spinner />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user