Skip to content

Commit

Permalink
🚑 master-dev fix (#333)
Browse files Browse the repository at this point in the history
* 🚑 master-dev fix

* 🐛 fix attribution
  • Loading branch information
BuildmodeOne authored Oct 4, 2023
1 parent ceeb71b commit 89a4cf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions rogue-thi-app/components/RoomMap.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react'
import React, { useEffect, useMemo, useRef, useState } from 'react'
import PropTypes from 'prop-types'

import Link from 'next/link'
Expand All @@ -17,12 +17,9 @@ import { USER_GUEST, useUserKind } from '../lib/hooks/user-kind'
import { formatFriendlyTime, formatISODate, formatISOTime } from '../lib/date-utils'
import { useLocation } from '../lib/hooks/geolocation'

import { ThemeContext } from '../pages/_app'
import styles from '../styles/RoomMap.module.css'
import { useTranslation } from 'next-i18next'

import themes from '../data/themes.json'

const SPECIAL_ROOMS = {
G308: { text: 'Linux PC-Pool', color: '#F5BD0C' }
}
Expand Down Expand Up @@ -64,6 +61,8 @@ export default function RoomMap ({ highlight, roomData }) {

const { t, i18n } = useTranslation(['rooms', 'api-translations'])

/**
* WILL BE USED WITH NEW TILE SERVICE
const systemDark = window.matchMedia('(prefers-color-scheme: dark)').matches
const [theme] = useContext(ThemeContext)
Expand All @@ -75,6 +74,7 @@ export default function RoomMap ({ highlight, roomData }) {
return themeSettings === 'dark'
}
}
*/

/**
* Preprocessed room data for Leaflet.
Expand Down
2 changes: 1 addition & 1 deletion rogue-thi-app/public/locales/en/rooms.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"automaticSuggestion": "Automatic Suggestions",
"occupied": "Occupied",
"freeFromUntil": "Free from {{from}} to {{until}}",
"attribution": "&copy; <a href=\"https://www.stadiamaps.com/\" target=\"_blank\">Stadia Maps</a> &copy; <a href=\"https://openmaptiles.org/\" target=\"_blank\">OpenMapTiles</a> &copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors",
"attribution": "&copy; <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"http://osm.org/copyright\">OpenStreetMap</a> contributors",
"legend": {
"free": "Free",
"occupied": "Occupied",
Expand Down

0 comments on commit 89a4cf0

Please sign in to comment.