-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/T4910/OctaView
- Loading branch information
Showing
22 changed files
with
728 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import Timetable from '../../timetable' | ||
import { Skeleton } from '@/components/ui/skeleton'; | ||
import { | ||
Card, | ||
CardContent, | ||
CardDescription, | ||
CardFooter, | ||
CardHeader, | ||
CardTitle, | ||
} from "@/components/ui/card" | ||
|
||
|
||
export default function dispalyAITimetable({ schedule }) { | ||
|
||
return ( | ||
<Card className='mt-6 md:via-slate-50 lg:via-white space-y-6'> | ||
<CardHeader className='flex justify-between items-center space-x-3'> | ||
<div className="mx-auto grid w-full max-w-6xl gap-1"> | ||
<h1 className="text-2xl font-semibold"> | ||
{(!!schedule?.name) | ||
? (schedule?.name??'Timetable Name') | ||
: <Skeleton className="max-w-64 h-8"/>} | ||
</h1> | ||
<div> | ||
<p className='font-medium text-sm text-muted-foreground'> | ||
{(!!schedule?.description) | ||
? (schedule?.description??'Timetable Name') | ||
: (schedule?.description === "") ? null : <Skeleton className="w-52 h-5"/>} | ||
</p> | ||
</div> | ||
</div> | ||
</CardHeader> | ||
<CardContent> | ||
<Timetable schedule={schedule}/> | ||
</CardContent> | ||
</Card> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.