rename draft to unlisted
This commit is contained in:
@@ -134,14 +134,14 @@ function List({ term, hits = [] }: { term: string; hits: Course[] }) {
|
||||
)
|
||||
}
|
||||
|
||||
function Course({ id, name, access_period, cert, draft }: Course) {
|
||||
function Course({ id, name, access_period, cert, unlisted }: Course) {
|
||||
return (
|
||||
<NavLink to={`/edit/${id}`} className="hover:scale-105 transition">
|
||||
{({ isPending }) => (
|
||||
<Card
|
||||
className={cn(
|
||||
'overflow-hidden relative h-96',
|
||||
draft && 'border-dashed'
|
||||
unlisted && 'border-dashed'
|
||||
)}
|
||||
>
|
||||
{isPending && (
|
||||
@@ -188,7 +188,7 @@ function Course({ id, name, access_period, cert, draft }: Course) {
|
||||
</li>
|
||||
)}
|
||||
|
||||
{draft && (
|
||||
{unlisted && (
|
||||
<li className="flex items-center">
|
||||
<HatGlassesIcon className="size-4" />
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user