Skip to content

Commit

Permalink
(fix): change logic for class
Browse files Browse the repository at this point in the history
  • Loading branch information
senthil-athiban committed Oct 25, 2024
1 parent 8dfbca5 commit 404e089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/admin-dashboard/ClassAssignmentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const ClassAssignmentCard: React.FC<ClassAssignmentCardProps> = ({ data, type })
</div>
<div className="flex w-full border-b border-t pb-6 pt-6">
<div className="flex w-2/5 flex-col gap-y-4 border-r">
<p>Due date</p>
<p>{type === 'assignment' ? 'Due date' : 'Scheduled at'}</p>
<p className="flex items-center text-xs font-semibold text-gray-400">
{type === 'assignment' && 'dueDate' in data && (
<>
Expand All @@ -75,7 +75,7 @@ const ClassAssignmentCard: React.FC<ClassAssignmentCardProps> = ({ data, type })
</p>
</div>
<div className="ml-4 flex w-3/5 flex-col gap-y-4">
<p>Due time</p>
<p>{type === 'assignment' ? 'Due time' : 'Timing'}</p>
<p className="flex items-center text-xs font-semibold text-gray-400">
{type === 'assignment' && 'dueTime' in data && (
<>
Expand Down

0 comments on commit 404e089

Please sign in to comment.