Skip to content
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

Add an option to pin and save schedules (not visible to user) #63

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/src/components/MultipleScheduleDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const NUM_PER_PAGE = 25;
interface Props {
schedules: Schedule[];
numPerPage?: number;
pin: (sch: Schedule) => void;
}

export default function MultipleScheduleDisplay(props: Props) {
Expand All @@ -26,7 +27,7 @@ export default function MultipleScheduleDisplay(props: Props) {
{schedulesToShow.map((schedule: Schedule, s) => (
<div key={s}>
<u>Schedule #{s + 1}</u>
<ScheduleDisplay schedule={schedule} />
<ScheduleDisplay schedule={schedule} pin={props.pin}/>
</div>
))}

Expand Down
1 change: 1 addition & 0 deletions app/src/components/MultipleSelectionDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface Props {
newSelection: () => void;
handleRemove: (sectionToRemove: Section) => void;
handleDeleteSelection: (ind: number) => void;

}

export default function MultipleSelectionDisplay(props: Props) {
Expand Down
Loading