-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
223 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Toolbar } from '@/components/common/toolbar' | ||
import { Text, View } from 'react-native' | ||
|
||
export default function BudgetsScreen() { | ||
return ( | ||
<View className="flex-1 bg-card"> | ||
<Text className="font-sans">Budgets Screen</Text> | ||
<Toolbar /> | ||
</View> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
import { Text } from 'react-native' | ||
import { Toolbar } from '@/components/common/toolbar' | ||
import { HomeHeader } from '@/components/home/header' | ||
import { ScrollView, Text, View } from 'react-native' | ||
import { useSafeAreaInsets } from 'react-native-safe-area-context' | ||
|
||
export default function HomeScreen() { | ||
return <Text className="font-sans">Home Screen</Text> | ||
const { top } = useSafeAreaInsets() | ||
return ( | ||
<View className="flex-1 bg-card" style={{ paddingTop: top }}> | ||
<HomeHeader /> | ||
<ScrollView> | ||
<Text className="font-sans">Home Screen</Text> | ||
</ScrollView> | ||
<Toolbar /> | ||
</View> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Toolbar } from '@/components/common/toolbar' | ||
import { Text, View } from 'react-native' | ||
|
||
export default function ScannerScreen() { | ||
return ( | ||
<View className="flex-1 bg-card"> | ||
<Text className="font-sans">Scanner Screen</Text> | ||
<Toolbar /> | ||
</View> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { Avatar, AvatarFallback, AvatarImage } from '@/components/Avatar' | ||
import { Badge } from '@/components/Badge' | ||
import { Button } from '@/components/Button' | ||
import { IconButton } from '@/components/IconButton' | ||
import { useAuth, useUser } from '@clerk/clerk-expo' | ||
import { LogOutIcon, PencilIcon } from 'lucide-react-native' | ||
import { ScrollView, Text, View } from 'react-native' | ||
|
||
export default function SettingsScreen() { | ||
const { signOut } = useAuth() | ||
const { user } = useUser() | ||
|
||
return ( | ||
<ScrollView contentContainerClassName="py-4" className="bg-card"> | ||
<View className="bg-muted rounded-lg mx-6 px-4 py-3 justify-end h-40"> | ||
<View className="flex flex-row items-center gap-2 justify-between"> | ||
<View className="flex flex-row items-center gap-3"> | ||
<Avatar className="w-12 h-12"> | ||
<AvatarImage | ||
source={{ | ||
uri: user?.imageUrl, | ||
}} | ||
/> | ||
<AvatarFallback>QK</AvatarFallback> | ||
</Avatar> | ||
<View> | ||
<Badge | ||
variant="secondary" | ||
label="Free" | ||
className="self-start rounded-md mb-1" | ||
/> | ||
<Text className="font-medium"> | ||
{user?.fullName ?? user?.primaryEmailAddress?.emailAddress} | ||
</Text> | ||
</View> | ||
</View> | ||
<IconButton icon={PencilIcon} size="sm" variant="ghost" /> | ||
</View> | ||
</View> | ||
<Text className='font-sans mx-6 text-muted-foreground mt-6'> | ||
Others | ||
</Text> | ||
<Button | ||
label="Sign out" | ||
variant="ghost" | ||
onPress={() => signOut()} | ||
labelClasses="text-red-500 font-regular" | ||
leftIcon={LogOutIcon} | ||
className="justify-start gap-6 px-6" | ||
/> | ||
</ScrollView> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Text } from 'react-native' | ||
|
||
export default function NewRecordScreen() { | ||
return <Text className="font-sans m-4 mx-auto">New Record</Text> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Link } from 'expo-router' | ||
import { PlusIcon, Sparkles } from 'lucide-react-native' | ||
import { View } from 'react-native' | ||
import { IconButton } from '../IconButton' | ||
import { Input } from '../Input' | ||
|
||
export function Toolbar() { | ||
return ( | ||
<View className="gap-3 items-center absolute flex-row bottom-4 left-6 right-6"> | ||
<Input | ||
placeholder="Ask AI anything..." | ||
leftSection={<Sparkles className="w-5 h-5 text-muted-foreground" />} | ||
className="flex-1" | ||
/> | ||
<Link href="/new-record" asChild> | ||
<IconButton icon={PlusIcon} className="w-10 h-10" iconClasses='size-6' /> | ||
</Link> | ||
</View> | ||
) | ||
} |
Oops, something went wrong.