-
Notifications
You must be signed in to change notification settings - Fork 0
Student analytics drawer #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| export const StudentAnalyticsDrawer = ({ studentId, courseId }: Props) => { | ||
| const { toast } = useToast(); | ||
| const [isOpen, setIsOpen] = useState(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we dont custom open/close logic, you can remove this state and remove the props from the Sheet component. it should work
|
|
||
| <div className="space-y-2 max-h-72 overflow-y-auto"> | ||
| {questionsForDate.map((question, idx) => ( | ||
| <div key={idx} className="grid grid-cols-3 gap-2"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make the table with the questions a separate component
j3rrythomas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix as per comments
Description of changes
Made the drawer analytics page (StudentAnalyticsDrawer.tsx). Used the donut chart component that nishitha made. analytics.ts is where I get the backend data.