Commit 05db268
committed
fix(predict): migrate PredictPosition to design system components
Replace raw React Native components with design system equivalents to
comply with UI development guidelines:
- Replace TouchableOpacity → ButtonBase
- Replace View → Box with twClassName props
- Replace StyleSheet.create() → Tailwind classes
- Delete PredictPosition.styles.ts file
- Use useTailwind() hook for inline styles
Tailwind class mappings:
- positionContainer → flex-row items-start py-2 gap-4 w-full
- positionImageContainer → pt-1
- positionImage → w-10 h-10 rounded-full
- positionDetails → flex-1 gap-0.5
- positionPnl → gap-2 items-end
- skeletonSpacing → mb-1
Fixes CODEBOT violations:
- Component Hierarchy (STRICT ORDER) - now uses design system first
- Styling Rules (ENFORCE STRICTLY) - removed StyleSheet.create()
All tests passing (22/22).1 parent 4f00f1a commit 05db268
File tree
2 files changed
+18
-78
lines changed- app/components/UI/Predict/components/PredictPosition
2 files changed
+18
-78
lines changedLines changed: 0 additions & 63 deletions
This file was deleted.
Lines changed: 18 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
| 46 | + | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | | - | |
75 | | - | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | | - | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
94 | | - | |
95 | | - | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
0 commit comments