Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildmodeOne committed Oct 9, 2023
1 parent f9c2f1d commit 952aa47
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions rogue-thi-app/lib/backend-legacy-utils/rooms-legacy-utils.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import LegacyAPI from '../backend/authenticated-legacy-api'

import { BUILDINGS_ALL, addMinutes, isInBuilding, maxDate, minDate } from '../backend-utils/rooms-utils'
import { BUILDINGS_ALL, IGNORE_GAPS, addMinutes, isInBuilding, maxDate, minDate } from '../backend-utils/rooms-utils'
import { formatISODate } from '../date-utils'

const IGNORE_GAPS = 15

function getLegacyRoomOpenings (rooms, date) {
date = formatISODate(date)
const openings = {}
Expand Down
2 changes: 1 addition & 1 deletion rogue-thi-app/lib/backend-utils/rooms-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { i18n } from 'next-i18next'
import roomDistances from '../../data/room-distances.json'
import { searchLegacyRooms } from '../backend-legacy-utils/rooms-legacy-utils'

const IGNORE_GAPS = 15
export const IGNORE_GAPS = 15

const LEGACY_MODE = process.env.NEXT_PUBLIC_LEGACY_MODE === 'true'

Expand Down
2 changes: 1 addition & 1 deletion rogue-thi-app/public/locales/en/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
},
"legacyWarning": "Due to the THI API being unavailable at the moment, reservations cannot be submitted."
}
}
}
4 changes: 2 additions & 2 deletions rogue-thi-app/styles/Library.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
}

.alert {
margin-top: 30px;
}
margin-top: 20px;
}

0 comments on commit 952aa47

Please sign in to comment.