mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 05:33:25 +00:00
remove unnecessary classes
This commit is contained in:
@@ -4,7 +4,7 @@ import { Text } from '@/components/ui/Text';
|
||||
export default function HomeScreen() {
|
||||
return (
|
||||
<ScreenLayout title="Home" subtitle="This is where all magic happens">
|
||||
<Text className="text-white">Movies will be listed here</Text>
|
||||
<Text>Movies will be listed here</Text>
|
||||
</ScreenLayout>
|
||||
);
|
||||
}
|
||||
|
@@ -3,7 +3,8 @@ import { useFocusEffect } from 'expo-router';
|
||||
import { useCallback, useRef, useState } from 'react';
|
||||
import { View } from 'react-native';
|
||||
import { TextInput } from 'react-native-gesture-handler';
|
||||
import Colors from '../../constants/Colors';
|
||||
|
||||
import Colors from '@/constants/Colors';
|
||||
|
||||
export default function Searchbar() {
|
||||
const [keyword, setKeyword] = useState('');
|
||||
|
@@ -12,7 +12,7 @@ export default function SearchScreen() {
|
||||
<ScreenLayout
|
||||
title={
|
||||
<View className="flex-row items-center">
|
||||
<Text className="text-2xl font-bold text-white">Search</Text>
|
||||
<Text className="text-2xl font-bold">Search</Text>
|
||||
</View>
|
||||
}
|
||||
subtitle="Looking for something?"
|
||||
|
@@ -15,7 +15,7 @@ export default function Item() {
|
||||
className="h-full w-full object-cover"
|
||||
/>
|
||||
</View>
|
||||
<Text className="font-bold text-white">Hamilton</Text>
|
||||
<Text className="font-bold">Hamilton</Text>
|
||||
<View className="flex-row items-center gap-3">
|
||||
<Text className="text-xs text-gray-600">Movie</Text>
|
||||
<View className="h-1 w-1 rounded-3xl bg-gray-600" />
|
||||
|
@@ -12,10 +12,10 @@ export default function ScreenLayout({ title, subtitle, children }: Props) {
|
||||
return (
|
||||
<View className="bg-shade-900 flex-1 p-12">
|
||||
{typeof title === 'string' && (
|
||||
<Text className="text-2xl font-bold text-white">{title}</Text>
|
||||
<Text className="text-2xl font-bold">{title}</Text>
|
||||
)}
|
||||
{typeof title !== 'string' && title}
|
||||
<Text className="mt-1 text-sm font-bold text-white">{subtitle}</Text>
|
||||
<Text className="mt-1 text-sm font-bold">{subtitle}</Text>
|
||||
<View className="py-3">{children}</View>
|
||||
</View>
|
||||
);
|
||||
|
Reference in New Issue
Block a user