Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 24 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/components/DrawerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
Animated, Modal, StyleSheet, Text, TouchableOpacity, View,
} from 'react-native';
import { MaterialIcons } from '@expo/vector-icons';
import { useAppTheme } from '../context/ThemeContext';
import { useAppTheme, ThemeColors } from '../context/ThemeContext';

type DrawerItem = {
id: string;
Expand Down Expand Up @@ -110,7 +110,7 @@ export default function DrawerMenu({ visible, onClose, onSelect }: Props) {
);
}

function makeStyles(c: any) {
function makeStyles(c: ThemeColors) {
return StyleSheet.create({
root: { flex: 1, flexDirection: 'row' },
overlay: { ...StyleSheet.absoluteFillObject, backgroundColor: 'rgba(15,23,42,0.5)' },
Expand Down
4 changes: 2 additions & 2 deletions src/components/ShiftTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
ActivityIndicator, Dimensions, LayoutAnimation, Platform, UIManager,
} from 'react-native';
import { MaterialIcons } from '@expo/vector-icons';
import { useAppTheme } from '../context/ThemeContext';
import { useAppTheme, ThemeColors } from '../context/ThemeContext';
import { useAirport } from '../context/AirportContext';
import { getAirlineOps, getAirlineColor } from '../utils/airlineOps';
import { fetchAirportScheduleRaw } from '../utils/fr24api';
Expand Down Expand Up @@ -300,7 +300,7 @@ export default function ShiftTimeline({ visible, onClose, shiftStart, shiftEnd,
);
}

function makeStyles(c: any) {
function makeStyles(c: ThemeColors) {
return StyleSheet.create({
overlay: { flex: 1, backgroundColor: 'rgba(0,0,0,0.5)', justifyContent: 'flex-end' },
sheet: {
Expand Down
4 changes: 2 additions & 2 deletions src/screens/CalendarScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as FileSystem from 'expo-file-system/legacy';
import { WebView } from 'react-native-webview';
import { MaterialIcons } from '@expo/vector-icons';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { useAppTheme } from '../context/ThemeContext';
import { useAppTheme, ThemeColors } from '../context/ThemeContext';
import { useAirport } from '../context/AirportContext';
import { fetchAirportScheduleRaw } from '../utils/fr24api';
import {
Expand Down Expand Up @@ -730,7 +730,7 @@ export default function CalendarScreen() {
);
}

function makeStyles(c: any) {
function makeStyles(c: ThemeColors) {
return StyleSheet.create({
pageHeader: { backgroundColor: c.card, paddingHorizontal: 16, paddingVertical: 14, borderBottomWidth: 1, borderBottomColor: c.border },
pageTitle: { fontSize: 22, fontWeight: 'bold', color: c.primaryDark },
Expand Down
4 changes: 2 additions & 2 deletions src/screens/FlightScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as Calendar from 'expo-calendar';
import * as Notifications from 'expo-notifications';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { MaterialIcons } from '@expo/vector-icons';
import { useAppTheme } from '../context/ThemeContext';
import { useAppTheme, ThemeColors } from '../context/ThemeContext';
import { useAirport } from '../context/AirportContext';
import { getAirlineOps, getAirlineColor } from '../utils/airlineOps';
import { fetchAirportScheduleRaw } from '../utils/fr24api';
Expand Down Expand Up @@ -726,7 +726,7 @@ export default function FlightScreen() {
);
}

function makeStyles(c: any) {
function makeStyles(c: ThemeColors) {
return StyleSheet.create({
pageHeader: { backgroundColor: c.card, paddingHorizontal: 16, paddingVertical: 14, borderBottomWidth: 1, borderBottomColor: c.border, flexDirection: 'row', alignItems: 'center' },
notifBtn: { width: 42, height: 42, borderRadius: 21, backgroundColor: c.cardSecondary, justifyContent: 'center', alignItems: 'center' },
Expand Down
4 changes: 2 additions & 2 deletions src/screens/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { WebView } from 'react-native-webview';
import * as ImagePicker from 'expo-image-picker';
import * as Calendar from 'expo-calendar';
import * as Location from 'expo-location';
import { useAppTheme } from '../context/ThemeContext';
import { useAppTheme, ThemeColors } from '../context/ThemeContext';
import ShiftTimeline from '../components/ShiftTimeline';

import { getAirlineOps, getAirlineColor } from '../utils/airlineOps';
Expand Down Expand Up @@ -429,7 +429,7 @@ export default function HomeScreen() {
);
}

function makeStyles(c: any) {
function makeStyles(c: ThemeColors) {
return StyleSheet.create({
hiddenWV: { height: 1, width: 1, opacity: 0, position: 'absolute', top: -100 },
topRow: { flexDirection: 'row', gap: 12, padding: 16, paddingBottom: 8 },
Expand Down
4 changes: 2 additions & 2 deletions src/screens/ManualsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
LayoutAnimation, Platform, UIManager, TextInput, Modal, Alert, KeyboardAvoidingView,
} from 'react-native';
import { MaterialIcons } from '@expo/vector-icons';
import { useAppTheme } from '../context/ThemeContext';
import { useAppTheme, ThemeColors } from '../context/ThemeContext';

const STORAGE_KEY = 'manuals_data_v2';

Expand Down Expand Up @@ -583,7 +583,7 @@ const modalStyles = StyleSheet.create({
});

// ─── Main Screen ──────────────────────────────────────────────────────────────
function makeStyles(c: any) {
function makeStyles(c: ThemeColors) {
return StyleSheet.create({
root: { flex: 1, backgroundColor: c.bg },
header: {
Expand Down
4 changes: 2 additions & 2 deletions src/screens/NotepadScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import {
} from 'react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { MaterialIcons } from '@expo/vector-icons';
import { useAppTheme } from '../context/ThemeContext';
import { useAppTheme, ThemeColors } from '../context/ThemeContext';

const STORAGE_KEY = 'aerostaff_notepad_v1';

function makeStyles(c: any) {
function makeStyles(c: ThemeColors) {
return StyleSheet.create({
root: { flex: 1, backgroundColor: c.bg },
toolbar: {
Expand Down
4 changes: 2 additions & 2 deletions src/screens/PasswordScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import AsyncStorage from '@react-native-async-storage/async-storage';
import * as SecureStore from 'expo-secure-store';
import { MaterialIcons } from '@expo/vector-icons';
import { useAppTheme } from '../context/ThemeContext';
import { useAppTheme, ThemeColors } from '../context/ThemeContext';

const PASSWORDS_KEY = 'aerostaff_passwords_v1';
const PIN_KEY = 'aerostaff_pin_v1';
Expand Down Expand Up @@ -380,7 +380,7 @@ function makeRowStyles(c: any) {
});
}

function makeStyles(c: any) {
function makeStyles(c: ThemeColors) {
return StyleSheet.create({
root: { flex: 1, backgroundColor: c.bg },
toolbar: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', paddingHorizontal: 16, paddingVertical: 12, backgroundColor: c.card, borderBottomWidth: 1, borderBottomColor: c.border },
Expand Down
4 changes: 2 additions & 2 deletions src/screens/PhonebookScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from 'react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { MaterialIcons } from '@expo/vector-icons';
import { useAppTheme } from '../context/ThemeContext';
import { useAppTheme, ThemeColors } from '../context/ThemeContext';

const STORAGE_KEY = 'aerostaff_phonebook_v1';

Expand Down Expand Up @@ -285,7 +285,7 @@ function ContactRow({ contact, onEdit, onDelete }: ContactRowProps) {


// ─── Main Screen ──────────────────────────────────────────────────────────────
function makeStyles(c: any) {
function makeStyles(c: ThemeColors) {
return StyleSheet.create({
root: { flex: 1, backgroundColor: c.bg },
header: {
Expand Down
Loading