From c477ebfd00e3898814721b8316a47cf14f1740c4 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Mon, 19 Apr 2021 16:08:32 -0400 Subject: fixed route bug --- src/components/profile/PublicProfile.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/components') diff --git a/src/components/profile/PublicProfile.tsx b/src/components/profile/PublicProfile.tsx index f2d52a3d..d2ee8626 100644 --- a/src/components/profile/PublicProfile.tsx +++ b/src/components/profile/PublicProfile.tsx @@ -241,7 +241,11 @@ const PublicProfile: React.FC = ({ )} {!userXId && ( navigation.navigate('CategorySelection')} + onPress={() => + navigation.navigate('CategorySelection', { + newCustomCategory: undefined, + }) + } style={styles.createCategoryButton}> Create a new category @@ -253,10 +257,6 @@ const PublicProfile: React.FC = ({ }; const styles = StyleSheet.create({ - container: { - flex: 1, - backgroundColor: '#fff', - }, momentsContainer: { backgroundColor: '#f2f2f2', paddingBottom: SCREEN_HEIGHT * 0.15, -- cgit v1.2.3-70-g09d2