aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-19 16:08:32 -0400
committerIvan Chen <ivan@tagg.id>2021-04-19 16:08:32 -0400
commitc477ebfd00e3898814721b8316a47cf14f1740c4 (patch)
tree1fa39c8eb7faee396b95d96f69dee976e9370b5d
parentf447d522769805a3db4b753be32d9c523c378db5 (diff)
fixed route bug
-rw-r--r--src/components/profile/PublicProfile.tsx10
-rw-r--r--src/screens/profile/CategorySelection.tsx2
2 files changed, 6 insertions, 6 deletions
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<ContentProps> = ({
)}
{!userXId && (
<TouchableOpacity
- onPress={() => navigation.navigate('CategorySelection')}
+ onPress={() =>
+ navigation.navigate('CategorySelection', {
+ newCustomCategory: undefined,
+ })
+ }
style={styles.createCategoryButton}>
<Text style={styles.createCategoryButtonLabel}>
Create a new category
@@ -253,10 +257,6 @@ const PublicProfile: React.FC<ContentProps> = ({
};
const styles = StyleSheet.create({
- container: {
- flex: 1,
- backgroundColor: '#fff',
- },
momentsContainer: {
backgroundColor: '#f2f2f2',
paddingBottom: SCREEN_HEIGHT * 0.15,
diff --git a/src/screens/profile/CategorySelection.tsx b/src/screens/profile/CategorySelection.tsx
index d3958025..c3e45e98 100644
--- a/src/screens/profile/CategorySelection.tsx
+++ b/src/screens/profile/CategorySelection.tsx
@@ -37,7 +37,7 @@ interface CategorySelectionProps {
navigation: CategorySelectionNavigationProps;
}
-const CategorySelection: React.FC<CategorySelectioProps> = ({
+const CategorySelection: React.FC<CategorySelectionProps> = ({
route,
navigation,
}) => {