Skip to content

Commit aacc266

Browse files
committed
Merge remote-tracking branch 'origin/@pw/experiments-with-navigation' into @pw/image-embeddings
2 parents d1bdd77 + 9a86c70 commit aacc266

File tree

2 files changed

+50
-4
lines changed

2 files changed

+50
-4
lines changed

apps/computer-vision/app/_layout.tsx

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Drawer } from 'expo-router/drawer';
22
import ColorPalette from '../colors';
33
import React, { useState } from 'react';
4-
import { Text } from 'react-native';
4+
import { Text, StyleSheet, View } from 'react-native';
55

66
import {
77
DrawerContentComponentProps,
@@ -21,7 +21,10 @@ function CustomDrawerContent(props: CustomDrawerProps) {
2121
{!isGenerating ? (
2222
<DrawerItemList {...otherProps} />
2323
) : (
24-
<Text>Model is generating. Interrupt before switching model</Text>
24+
<View style={styles.centerContent}>
25+
<Text style={styles.mainText}>Model is generating...</Text>
26+
<Text style={styles.subText}>Interrupt before switching model</Text>
27+
</View>
2528
)}
2629
</DrawerContentScrollView>
2730
);
@@ -101,10 +104,30 @@ export default function _layout() {
101104
name="index"
102105
options={{
103106
drawerLabel: () => null,
107+
title: 'Main Menu',
104108
drawerItemStyle: { display: 'none' },
105109
}}
106110
/>
107111
</Drawer>
108112
</GeneratingContext>
109113
);
110114
}
115+
116+
const styles = StyleSheet.create({
117+
centerContent: {
118+
flex: 1,
119+
justifyContent: 'center',
120+
alignItems: 'center',
121+
padding: 20,
122+
},
123+
mainText: {
124+
fontSize: 18,
125+
fontWeight: 'bold',
126+
marginBottom: 10,
127+
color: ColorPalette.primary,
128+
},
129+
subText: {
130+
fontSize: 14,
131+
color: ColorPalette.strongPrimary,
132+
},
133+
});

apps/llm/app/_layout.tsx

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Drawer } from 'expo-router/drawer';
22
import ColorPalette from '../colors';
33
import React, { useState } from 'react';
4-
import { Text } from 'react-native';
4+
import { Text, StyleSheet, View } from 'react-native';
55

66
import {
77
DrawerContentComponentProps,
@@ -21,7 +21,10 @@ function CustomDrawerContent(props: CustomDrawerProps) {
2121
{!isGenerating ? (
2222
<DrawerItemList {...otherProps} />
2323
) : (
24-
<Text>Model is generating. Interrupt before switching model</Text>
24+
<View style={styles.centerContent}>
25+
<Text style={styles.mainText}>Model is generating...</Text>
26+
<Text style={styles.subText}>Interrupt before switching model</Text>
27+
</View>
2528
)}
2629
</DrawerContentScrollView>
2730
);
@@ -77,10 +80,30 @@ export default function _layout() {
7780
name="index"
7881
options={{
7982
drawerLabel: () => null,
83+
title: 'Main Menu',
8084
drawerItemStyle: { display: 'none' },
8185
}}
8286
/>
8387
</Drawer>
8488
</GeneratingContext>
8589
);
8690
}
91+
92+
const styles = StyleSheet.create({
93+
centerContent: {
94+
flex: 1,
95+
justifyContent: 'center',
96+
alignItems: 'center',
97+
padding: 20,
98+
},
99+
mainText: {
100+
fontSize: 18,
101+
fontWeight: 'bold',
102+
marginBottom: 10,
103+
color: ColorPalette.primary,
104+
},
105+
subText: {
106+
fontSize: 14,
107+
color: ColorPalette.strongPrimary,
108+
},
109+
});

0 commit comments

Comments
 (0)