mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-12 23:41:02 +00:00
Fix all ESLint errors in mobile app (157 errors -> 0)
Major fixes: - Replace `any` types with proper TypeScript types across all files - Convert require() imports to ES module imports - Add __DEV__ guards to console statements - Escape special characters in JSX (' and ") - Fix unused variables (prefix with _ or remove) - Fix React hooks violations (useCallback, useMemo patterns) - Convert wasm-crypto-shim.js to TypeScript - Add eslint-disable comments for valid setState patterns Files affected: 50+ screens, components, contexts, and services Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -117,7 +117,7 @@ export const InviteModal: React.FC<InviteModalProps> = ({ visible, onClose }) =>
|
||||
|
||||
<ScrollView style={styles.modalBody} showsVerticalScrollIndicator={false}>
|
||||
<Text style={styles.modalDescription}>
|
||||
Share your referral link. When your friends complete KYC, you'll earn trust score points!
|
||||
Share your referral link. When your friends complete KYC, you'll earn trust score points!
|
||||
</Text>
|
||||
|
||||
{/* Referral Link */}
|
||||
@@ -190,7 +190,7 @@ export const InviteModal: React.FC<InviteModalProps> = ({ visible, onClose }) =>
|
||||
<View style={[styles.section, styles.advancedSection]}>
|
||||
<Text style={styles.sectionLabel}>Pre-Register a Friend (Advanced)</Text>
|
||||
<Text style={styles.hint}>
|
||||
If you know your friend's wallet address, you can pre-register them on-chain.
|
||||
If you know your friend's wallet address, you can pre-register them on-chain.
|
||||
</Text>
|
||||
<TextInput
|
||||
style={styles.addressInput}
|
||||
|
||||
Reference in New Issue
Block a user