Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Seagullie committed Sep 2, 2024
1 parent 4dd2797 commit eab2dcf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
21 changes: 12 additions & 9 deletions constants/Constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type REGLAMENT_DATA_ELEM_TYPE = [number, string, string, string]
export type REGLAMENT_DATA_ELEM_TYPE = [number, string, string]
export type REGLAMENT_DATA_TYPE = REGLAMENT_DATA_ELEM_TYPE[]

// export const REGLAMENT_DATA_OLD: REGLAMENT_DATA_TYPE = [
Expand All @@ -11,14 +11,14 @@ export type REGLAMENT_DATA_TYPE = REGLAMENT_DATA_ELEM_TYPE[]
// ]

export const REGLAMENT_DATA: REGLAMENT_DATA_TYPE = [
[1, "8:30", "9:50", "🤔"],
[2, "10:05", "11:25", "🤔"],
[3, "11:40", "13:00", "🤔"],
[4, "13:15", "14:35", "🤔"],
[5, "14:50", "16:10", "🤔"],
[6, "16:25", "17:45", "🤔"],
[7, "18:00", "19:20", "🤔"],
[8, "19:30", "20:50", "🤔"],
[1, "8:30", "9:50"],
[2, "10:05", "11:25"],
[3, "11:40", "13:00"],
[4, "13:15", "14:35"],
[5, "14:50", "16:10"],
[6, "16:25", "17:45"],
[7, "18:00", "19:20"],
[8, "19:30", "20:50"],
]

export const suffixesForNumbers = {
Expand All @@ -34,3 +34,6 @@ export const SEMESTER_MONTHS = 6
export const MAX_CLASSES_PER_DAY = 6

export const NOTIFICATIONS_CHANNEL_ID = "interactive-schedule-notifications"

export const WEB_VERSION_NAME = "scheduleuad.live"
export const LINK_TO_WEB_VERSION = `https://${WEB_VERSION_NAME}`
4 changes: 2 additions & 2 deletions screens/IntroductoryCarousel/Pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { palette } from "../../styles/global"
import { previewImagesFull } from "../../constants/Images"
import { isRunningInBrowser } from "../../utilities/utilities"


// Import Swiper React components
import { SwiperSlide } from "swiper/react"

Expand Down Expand Up @@ -118,7 +117,8 @@ const styles = StyleSheet.create({

imageContainer: {
borderRadius: 10,
height: "55%",
// bump to 65% on web. Not sure if it's okay to do so on mobile
height: isRunningInBrowser() ? "65%" : "55%",
// width: "100%",
// flex: 1,
alignSelf: "stretch",
Expand Down
5 changes: 3 additions & 2 deletions screens/QnAScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import AppText from "../components/shared/AppText"
import Table from "../components/Table"
import { ScrollView } from "react-native-gesture-handler"
import UnfoldableCard, { UCStyles } from "../components/UnfoldableCard"
import { LINK_TO_WEB_VERSION, WEB_VERSION_NAME } from "../constants/Constants"

export default function QnAScreen() {
return (
Expand Down Expand Up @@ -101,11 +102,11 @@ export default function QnAScreen() {
Альтернативою iOS версії є веб версія:{" "}
<AppText
onPress={() => {
Linking.openURL("https://schedule-uad.live")
Linking.openURL(LINK_TO_WEB_VERSION)
}}
>
{" "}
schedule-uad.live
{`${WEB_VERSION_NAME}`}
</AppText>
</AppText>
}
Expand Down

0 comments on commit eab2dcf

Please sign in to comment.