added logout button to guided setup screens
This commit is contained in:
@@ -348,36 +348,6 @@ export default function ViewDetailsAssignment() {
|
|||||||
Based only on completed tasks in this assignment.
|
Based only on completed tasks in this assignment.
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
{totalTasks > 0 ? (
|
|
||||||
<View className="mt-5">
|
|
||||||
<View className="mb-2 flex-row items-center justify-between">
|
|
||||||
<Text className="text-sm font-semibold text-text-secondary">
|
|
||||||
Task Progress
|
|
||||||
</Text>
|
|
||||||
|
|
||||||
<Text className="text-sm font-bold text-text-main">
|
|
||||||
{completedTasks}/{totalTasks}
|
|
||||||
</Text>
|
|
||||||
</View>
|
|
||||||
|
|
||||||
<View className="h-3 overflow-hidden rounded-full bg-app-subtle">
|
|
||||||
<View
|
|
||||||
className="h-full rounded-full"
|
|
||||||
style={{
|
|
||||||
width: `${progress}%`,
|
|
||||||
backgroundColor: colorSet.strong,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</View>
|
|
||||||
|
|
||||||
<Text className="mt-2 text-xs font-medium text-text-secondary">
|
|
||||||
{remainingTasks === 0
|
|
||||||
? 'All tasks complete'
|
|
||||||
: `${remainingTasks} task${remainingTasks === 1 ? '' : 's'} remaining`}
|
|
||||||
</Text>
|
|
||||||
</View>
|
|
||||||
) : null}
|
|
||||||
|
|
||||||
<Text className="mt-4 text-sm text-text-muted">
|
<Text className="mt-4 text-sm text-text-muted">
|
||||||
Last changed: {formatDateTime(assignment.lastChanged)}
|
Last changed: {formatDateTime(assignment.lastChanged)}
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
@@ -250,6 +250,16 @@ export default function SetupScreen() {
|
|||||||
options={{
|
options={{
|
||||||
title: 'Guided Setup',
|
title: 'Guided Setup',
|
||||||
headerTitleAlign: 'center',
|
headerTitleAlign: 'center',
|
||||||
|
headerRight: () => (
|
||||||
|
<Pressable
|
||||||
|
className="rounded-full bg-app-subtle px-4 py-2"
|
||||||
|
onPress={async () => await supabase.auth.signOut()}
|
||||||
|
>
|
||||||
|
<Text className="text-sm font-semibold text-text-secondary">
|
||||||
|
Logout
|
||||||
|
</Text>
|
||||||
|
</Pressable>
|
||||||
|
),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user