Skip to content

Commit

Permalink
documentation and update padding
Browse files Browse the repository at this point in the history
  • Loading branch information
anchen9 committed Feb 10, 2025
1 parent 7a5ac35 commit d1155c2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions src/components/includes/AddQuestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@ type Props = {
showProfessorStudentView: boolean;
};

/**
* `AddQuestion` Component - Displays a component that allows users ask a question
* to join the queue.
*
* @remarks
* This component is used within a course session to enable students to submit
* questions to join the queue. The user submits information about location as well
* as the specific assignment. It adapts its layout based on screen size and provides different
* views depending on the user's role (professor's student view or student view).
*
* @param props - Contains:
* - `course`: The course associated with the session.
* - `session`: The current session where the question will be added.
* - `mobileBreakpoint`: The screen width threshold for mobile layout.
* - `showProfessorStudentView`: boolean to toggle ProfessorStudentView.
*/
const AddQuestion = ({ course, session, mobileBreakpoint, showProfessorStudentView }: Props) => {
/*
* State machine states
Expand Down Expand Up @@ -354,6 +370,7 @@ const AddQuestion = ({ course, session, mobileBreakpoint, showProfessorStudentVi
/>
)}
</div>
<hr />
<div className="tagsMiniContainer">
<p className="header">Your Files<span className="required"> * </span></p>
<img alt="" src={addFiles}/>
Expand Down
4 changes: 2 additions & 2 deletions src/styles/session/AddQuestion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
.topRow{
position: relative;
width: 100%;
padding-top: 24px;
padding-bottom: 24px;
padding-top: 14px;
padding-bottom: 14px;
}

.disclaimerContainer{
Expand Down

0 comments on commit d1155c2

Please sign in to comment.