Skip to content

Commit 1f9fadd

Browse files
authored
fix(#1): text colors on onboarding screens (#33)
1 parent c2ede24 commit 1f9fadd

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Diff for: app/(onboarding)/index.tsx

+4-9
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export default function AppOnboarding() {
2929
const pagerViewRef = useRef<PagerView>(null);
3030
const [page, setPage] = useState<number>(0);
3131

32-
const textColor = colorScheme === 'dark' ? 'bg-gray-100' : 'bg-gray-800';
33-
const bgColor = colorScheme === 'dark' ? 'bg-primary-dark' : 'bg-primary-light';
32+
const textColor = colorScheme === 'dark' ? 'text-gray-100' : 'text-gray-800';
33+
const bgColor = colorScheme === 'dark' ? 'bg-primary-dark' : 'bg-secondary-light';
3434

3535
const getDotColor = (index: number) => (index === page ? 'bg-action-500' : 'bg-white');
3636

@@ -63,13 +63,8 @@ export default function AppOnboarding() {
6363
style={{ width: '100%', flex: 1 }}
6464
/>
6565
<Text
66-
style={{
67-
color: textColor,
68-
fontSize: 24,
69-
textAlign: 'center',
70-
}}
71-
className="font-Inter-SemiBold leading-9"
72-
>
66+
style={{ fontSize: 24 }}
67+
className={`font-Inter-SemiBold text-center leading-9 ${textColor}`}>
7368
{page.content}
7469
</Text>
7570
</View>

0 commit comments

Comments
 (0)