Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions sources/components/SidebarView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { Image } from 'expo-image';
import { StyleSheet, useUnistyles } from 'react-native-unistyles';
import { t } from '@/text';
import { useInboxHasContent } from '@/hooks/useInboxHasContent';
import { Ionicons } from '@expo/vector-icons';

const stylesheet = StyleSheet.create((theme, runtime) => ({
container: {
Expand Down Expand Up @@ -237,6 +238,12 @@ export const SidebarView = React.memo(() => {
tintColor={theme.colors.header.tint}
/>
</Pressable>
<Pressable
onPress={handleNewSession}
hitSlop={15}
>
<Ionicons name="add-outline" size={28} color={theme.colors.header.tint} />
</Pressable>
</View>
<View style={styles.titleContainer}>
<Text style={styles.titleText}>{t('sidebar.sessionsTitle')}</Text>
Expand Down
2 changes: 1 addition & 1 deletion sources/sync/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const SettingsSchema = z.object({
// only touch the fields it knows about.
//

const SettingsSchemaPartial = SettingsSchema.loose().partial();
const SettingsSchemaPartial = SettingsSchema.partial();

export type Settings = z.infer<typeof SettingsSchema>;

Expand Down