mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-10-07 16:18:57 +00:00
Fix mobile TypeScript errors and add package-lock.json
Fix tsconfig.json (remove rootDir/outDir, add noEmit), fix useRef type error, fix navigation type cast, add @types/react-native-vector-icons, and generate package-lock.json for CI.
This commit is contained in:
parent
cd088b67f4
commit
b410d50692
5 changed files with 5951 additions and 4 deletions
5947
mobile/package-lock.json
generated
Normal file
5947
mobile/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -36,6 +36,7 @@
|
|||
"@react-native/babel-preset": "^0.79.0",
|
||||
"@react-native/metro-config": "^0.79.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-native-vector-icons": "^6.4.18",
|
||||
"typescript": "~5.7.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export function useOfflineDraft<T extends Record<string, unknown>>(
|
|||
) {
|
||||
const [draft, setDraft] = useState<T>(initialData);
|
||||
const [isLoaded, setIsLoaded] = useState(false);
|
||||
const saveTimeout = useRef<ReturnType<typeof setTimeout>>();
|
||||
const saveTimeout = useRef<ReturnType<typeof setTimeout>>(null);
|
||||
|
||||
useEffect(() => {
|
||||
AsyncStorage.getItem(DRAFT_KEY).then((stored) => {
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ export function ProposalWorkspaceScreen() {
|
|||
onPress={
|
||||
!isLocked
|
||||
? () =>
|
||||
navigation.navigate('LineItemEdit' as never, {
|
||||
(navigation as any).navigate('LineItemEdit', {
|
||||
proposalId,
|
||||
lineItemId: item.id,
|
||||
description: item.description,
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@
|
|||
"skipLibCheck": true,
|
||||
"resolveJsonModule": true,
|
||||
"allowJs": true,
|
||||
"outDir": "./dist",
|
||||
"rootDir": ".",
|
||||
"noEmit": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@proposal-system/api-contracts": ["../shared/api-contracts/src"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue