Skip to content

Commit

Permalink
Added linking to maps in Schedule Details
Browse files Browse the repository at this point in the history
# Description

<!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. -->

Closes #[REPLACE WITH ISSUE NUMBER]

## Type of change

<!-- Please delete options that are not relevant. -->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

# How Has This Been Tested?

<!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration -->

- [ ] Test A
- [ ] Test B

**Test Configuration**:

<!-- Please remove sections that are not relevant. -->

- Node.js version:
- Python version:
- Desktop/Mobile:
- OS:
- Browser:

# Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
  • Loading branch information
jhtl99 committed Nov 2, 2024
1 parent 4ba8831 commit ae76717
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/frontend/src/components/SchedulesDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ const Lecture = ({
<div className="col-span-1 col-start-3">
{timeArrToString([time])}
</div>
<div className="col-span-1">
<Link href={`https://maps.scottylabs.org/${time.building}-${time.room}`}>
{time.building} {time.room}
</div>
</Link>
</div>
))}
</div>
Expand All @@ -72,9 +72,10 @@ const Lecture = ({
<div className="col-span-1 col-start-3">
{timeArrToString([time])}
</div>
<div className="col-span-1">
<Link href={`https://maps.scottylabs.org/${time.building}-${time.room}`}>
{time.building} {time.room}
</div>
</Link>

</div>
))}
</div>
Expand Down

0 comments on commit ae76717

Please sign in to comment.