units,lesson as standalone

This commit is contained in:
2026-07-10 11:45:02 +08:00
parent 182bd93d10
commit 01a2c63b06
60 changed files with 3217 additions and 606 deletions
@@ -35,6 +35,12 @@ const cellOverrides = {
<Badge variant="outline" className="text-xs text-muted-foreground">standalone</Badge>
);
},
course_bound: (info) =>
info.getValue() ? (
<Badge variant="default" className="text-xs">In a course</Badge>
) : (
<Badge variant="outline" className="text-xs text-muted-foreground">Not in a course</Badge>
),
};
export function buildDataColumns(attributes, rowActions) {