Skip to content

Commit

Permalink
Merge pull request #41 from hotungkhanh/kan-86/remove-building-tab
Browse files Browse the repository at this point in the history
feat: remove building tab on input page
  • Loading branch information
dh-giang-vu authored Oct 9, 2024
2 parents b54b7cf + 63ccba4 commit 799dc41
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 32 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/ProceedButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export default function ProceedButton({ fileChosen }: ProceedButtonProps) {
if (fileChosen === null) {
return <Button disabled> Proceed </Button>
} else {
return <Button onClick={() => navigate("/seminfo/building")}> Proceed</Button>;
return <Button onClick={() => navigate("/seminfo/room")}> Proceed</Button>;
}
}
9 changes: 0 additions & 9 deletions frontend/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@ export default function Sidebar({ marginTop, width }: SidebarProps) {
>
<List>

<ListItem key="Building" disablePadding>
<ListItemButton component={Link} to="building">
<ListItemIcon>
<InboxIcon />
</ListItemIcon>
<ListItemText primary="Building" />
</ListItemButton>
</ListItem>

<ListItem key="Room" disablePadding>
<ListItemButton component={Link} to="room">
<ListItemIcon>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/SendData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function SendData() {
<Footer>
<button style={{ scale: "2", position: "absolute", top: 20, right: 45 + "%" }} onClick={generateTimetable}>Generate Timetable</button>
<div className="links-container">
<Link to="../seminfo/building"><BackButton /></Link>
<Link to="../seminfo/room"><BackButton /></Link>
<Link to="../timetablemod"><NextButton /></Link>
</div>
</Footer>
Expand Down
19 changes: 0 additions & 19 deletions frontend/src/pages/spreadsheets/Building.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import SemesterInfo from './pages/SemesterInfo.tsx'
import TimetableMod from './pages/TimetableMod.tsx'
import Building from './pages/spreadsheets/Building.tsx'
import Room from './pages/spreadsheets/Room.tsx'
import Unit from './pages/spreadsheets/Unit.tsx'
import Download from './pages/Download.tsx'
Expand Down Expand Up @@ -33,7 +32,6 @@ const routes = [
path: "seminfo",
element: <PrivateRoute element={<SemesterInfo />} />,
children: [
{ path: "building", element: <Building /> },
{ path: "room", element: <Room /> },
{ path: "unit", element: <Unit /> },
],
Expand Down

0 comments on commit 799dc41

Please sign in to comment.